all groups > vj# > december 2004 >
You're in the

vj#

group:

Using Java code and libraries in J#



Using Java code and libraries in J# Chris Stewatr
12/21/2004 6:41:02 AM
vj#: I’m looking to reference a Java JAR file in a J# (actually, VB.NET would be
best) application. I’ve noticed that I can only reference dll or exe files
in my applications. Is there no way to reference a JAR file in a J#
application? Kind of seems out of place considering it’s a gateway to .NET
for Java programmers. I’ve discovered and tried the Java bytecode conversion
tool with no success. Apparently the JAR files I’m working with are using
Re: Using Java code and libraries in J# Dino Chiesa [Microsoft]
12/21/2004 11:42:20 AM
and, to answer the OP questions more directly.

[quoted text, click to view]

If you are using J# and .NET, then you will not reference JAR files. you
need assemblies (DLLs or EXEs).

[quoted text, click to view]

I take it this is the jbimp.exe tool? you will need to convert the third
party JARs also. I assume you have access to them.

-D


"Lars-Inge Tønnessen [VJ# MVP]" <http://emailme.larsinge.com> wrote in
message news:ueXu2S35EHA.1392@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Re: Using Java code and libraries in J# Lars-Inge Tønnessen [VJ# MVP]
12/21/2004 4:49:36 PM
[quoted text, click to view]


Please take a look at these links:

http://www.jnbridge.com/

http://j-integra.intrinsyc.com/net/info/


Regards,
Lars-Inge Tønnessen


Re: Using Java code and libraries in J# George Birbilis [MVP J#] [9880]
12/29/2004 2:09:47 PM
[quoted text, click to view]

note that you don't need the source code, the tool can import the compiled
..class files as well (I think you don't even need to unpack the .jar file
using WinZip or similar tool [rename .jar to .zip to see the included .class
files with WinZip])

can also try using JAD (Java Disassembler) to decompile the libraries to
source code, patch it if needed, then convert

anyway, you do have to check the licenses of those libraries

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
George Birbilis <birbilis@kagi.com> [Microsoft MVP J#]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ QuickTime VCL and ActiveX controls (for PowerPoint/VB/Delphi etc.)
+ Plugs VCL and ActiveX controls (InterProcess/Internet communication)
+ TransFormations, VB6 forms to ASP.net WebForms convertion
http://www.kagi.com/birbilis
+ Robotics
http://www.mech.upatras.gr/~robgroup
.........................................................................


AddThis Social Bookmark Button