954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Howto use VB.Net dll or exe in Java program

Dear all,

I'd like to write a Java program that could use functions in an existing VB.Net dll or exe. Is it possible to do that?

I had actually searched for methods online, and it seems like there's JNI which could do that, but after reading the implementation I got stuck. Could anybody help describe the steps to implement that (JNI)?

Or is there any better suggestion on how to use the VB.Net dll? Thanks a lot!

yugho
Newbie Poster
2 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

[links snipped]

I'm sorry but I couldn't use any paid products here. I've read through some JNI tutorials, but I somehow find difficulties when creating the C++/VC++ bridge between Java and VB.Net. Could anybody please help me with this issue? Thanks!!

yugho
Newbie Poster
2 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

Yes, you can use .NET dll into java program.
Use System.loadLibrary method and some JNI features.

Please check :
http://www.codeproject.com/KB/java/JavaHostWPF.aspx

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You