Results 1 to 6 of 6

Thread: VB and Java

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    3

    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.

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: VB and Java

    where exactly is does the java come into play?

  3. #3

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    3

    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.

  4. #4
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    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)

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2006
    Posts
    3

    Re: VB and Java

    awesome, thanks

  6. #6
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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
  •  



Click Here to Expand Forum to Full Width