Re: Java class or jar usage in vb.net

From: Wayne Citrin (citrin_at_jnbridge.com)
Date: 02/13/04


Date: Thu, 12 Feb 2004 17:17:31 -0700

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
citrin@jnbridge.com
www.jnbridge.com
Spanning the Worlds of Java and .NET
____________________________________

"Chris Smith" <user@email.com> wrote in message
news:%230NZ8sY8DHA.2576@TK2MSFTNGP11.phx.gbl...
> Check this link out;
>
>
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&newwindow=1&safe=off&threadm=77p121%24s95%241%40netnews.upenn.edu&rnum=13&prev=/groups%3Fnum%3D50%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26newwindow%3D1%26safe%3Doff%26q%3Dwindows%255Cjava%255Ctrustlib%26sa%3DN%26tab%3Dwg
>
> 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?
>
>
> "Herfried K. Wagner [MVP]" <hirf-spam-me-here@gmx.at> wrote in message
> news:%234U3COY8DHA.712@tk2msftngp13.phx.gbl...
> > * "Chris Smith" <user@email.com> scripsit:
> > > 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/>
> >
> > --
> > Herfried K. Wagner [MVP]
> > <http://www.mvps.org/dotnet>
>
>



Relevant Pages

  • Re: Why FC4 using the Jpackage 1.4.2 Java?
    ... No open source JVM currently exists. ... You can register with Sun and go to Sun's Java sight and freely ... run the Java code optimally on the specific platform. ...
    (Fedora)
  • Re: Help me!! Why java is so popular
    ... My point is that those who use Windows already accept bloatware and the ... I think those are the kinds of things which has made Java popular. ... And don't forget about the very fact that with JVM, ... GUI elements are called components and containers, ...
    (comp.lang.java.programmer)
  • Re: Help me!! Why java is so popular
    ... You are basically arguing that "Java is slow because it is slow". ... > Also, a JVM can pay attention to usage, provide caching, adapt at run ... I have no use for unicode in my ...
    (comp.lang.java.programmer)
  • Re: Dusting off an old JVM discussion
    ... I was wondering how difficult it would be to write a JVM in Forth, ... Upon looking at those "opcode" instructions, ... and I think today's PDA's might have more memory ... I imagine those applications written in Java, ...
    (comp.lang.forth)
  • Re: For performance, write it in C - Part 2, comparing C, Ruby and Java
    ... Or is it the fact that after working in Java since '92 you have ... find out about the JVM startup penalty and that any decent benchmark ... would not account for that (only in case you are compairing JVM ...
    (comp.lang.ruby)