Java class or jar usage in vb.net

C

Chris Smith

Experienced members,

Can someone point me in the direction of utilizing some existing objects
that where writing in java. I was given a .jar file with some documentation
about the classes within it.

I am trying to create a instance of these classes from within vb.net (VS
2003 Framework 1.1). Can someone point me in the direction I need to go or
some good documentation?

Thanks,

Chris Smith
 
H

Herfried K. Wagner [MVP]

* "Chris Smith said:
Can someone point me in the direction of utilizing some existing objects
that where writing in java. I was given a .jar file with some documentation
about the classes within it.

I am trying to create a instance of these classes from within vb.net (VS
2003 Framework 1.1). Can someone point me in the direction I need to go or
some good documentation?

You cannot use Java classes in .NET directly.

<http://www.intrinsyc.com/products/ja.net/>
<http://www.remotesoft.com/javanet/index.html>
<http://www.jnbridge.com/1dot2beta.htm> bzw. <http://www.jnbridge.com>
<http://koti.mbnet.fi/akini/java/axis/>
 
W

Wayne Citrin

Hi Chris --

The link you supply below requires the MS JVM, and the days of the MS JVM
are numbered. Also, the MS JVM doesn't support the most up-to-date Java (it
only supports up through JDK 1.1.4 and a few other classes), and may not run
your jar file.

You have a couple of choices in doing interop. One is to use one of the
interop technologies that Herfried mentions below. I, of course, recommend
JNBridge. :) BTW, the link http://www.jnbridge.com/1dot2beta.htm that
Herfried supplied is out of date -- simply use www.jnbridge.com.

The other choice is to use the jbimp.exe tool supplied with the .NET SDK.
This will convert Java binaries and jar files to MSIL, but only if the
binaries only depend on JDK 1.1.4 and JDK 1.2 collections, so you may not be
able to use it.

Wayne
____________________________________

Wayne Citrin
JNBridge, LLC
(e-mail address removed)
www.jnbridge.com
Spanning the Worlds of Java and .NET
____________________________________

Chris Smith said:
Check this link out;

http://groups.google.com/groups?hl=...e=off&q=windows%5Cjava%5Ctrustlib&sa=N&tab=wg

I will agree that you just can use java natively, but this I think is pretty
close. You think this will work in .NET languages?


go
 
G

Guest

Hello Chris

I once had a friend named Chris Smith living in San Diego... Are you him? If so drop me an email @ (e-mail address removed)

Yam

----- Chris Smith wrote: ----

Experienced members

Can someone point me in the direction of utilizing some existing object
that where writing in java. I was given a .jar file with some documentatio
about the classes within it

I am trying to create a instance of these classes from within vb.net (V
2003 Framework 1.1). Can someone point me in the direction I need to go o
some good documentation

Thanks

Chris Smit
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top