|
-
Feb 6th, 2006, 07:52 AM
#1
Thread Starter
New Member
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.
-
Feb 6th, 2006, 09:35 AM
#2
Re: VB and Java
where exactly is does the java come into play?
-
Feb 6th, 2006, 02:50 PM
#3
Thread Starter
New Member
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.
-
Feb 6th, 2006, 03:01 PM
#4
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)
-
Feb 6th, 2006, 05:39 PM
#5
Thread Starter
New Member
-
Feb 7th, 2006, 06:22 AM
#6
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|