PDA

Click to See Complete Forum and Search --> : Calling Java from VB


shahafz
Mar 18th, 2001, 12:47 AM
I need help on how to call Java functions from VB.

Mar 19th, 2001, 10:23 AM
I think that really depends on what you actually mean.

My first thought was the Java Native Interface, JNI, which allows you to call native methods from Java and Java from native methods. Unfortunately for VB folks, the examples seem to be for communicating with C/C++ apps.
http://java.sun.com/docs/books/tutorial/native1.1/implementing/index.html

But from the VB side, you might get by with the "Shell" command, depending on the type of Java app/method/function you are trying to call.

Hey, looks like there's a cool VB idea at http://forums.vb-world.net/showthread.php?s=&threadid=51674
I haven't been "thinking in VB" for a while (despite my handle).

shahafz
Mar 20th, 2001, 12:51 AM
What i mean is that i have a java class with public methods, i want to make referance or something to it in a simple VB project, and than call these Java public methods from the VB project.

10X.

smita_meena
Sep 12th, 2007, 09:08 AM
Hi Shahafz

Did you get the solution for your query. I am also looking for the same. Please let me know if you have got any reply.

Thanks
Smita