-
VB and Java
My class has given me a project where I need to manipulate Java with visual basic. The project:
A temperature chip is on a javelin stamp board, the temperature is to be displayed on an altera board (in hex), and has to be able to be able to convert to kelvin, celsius, or farenheit (which has to be done in VB). How do I go about connecting VB and Java?
Danke.
-
Re: VB and Java
where exactly is does the java come into play?
-
Re: VB and Java
The chip is in the javelin board that i'm using, and it needs to be programmed in Java. Java takes the temperature measurements and then relays it to VB.
-
Re: VB and Java
my guess is you will need to write the java class and expose it to COM by registering it on the system. You then would be able to set a reference in VB.NET to the COM dll that is your Java app.
you may be able to find some examples on the web. I came across this one
http://www.stardeveloper.com/article...0030901&page=1
that is JAVA to ASP so its not EXACTLY what you want, but if you could get that far, then it would be just as easy to go from JAVA to VB.NET
Basically once you have Java registered as a COM object, you would be able to reference it in any language that can use COM objects. (asp, vb, vb.net, etc)
-
Re: VB and Java
-
Re: VB and Java
What you need to search for is Java .NET Interop.
I searched, and got this.
http://www.devx.com/interop/Article/19945