Solved

How to call VB DLL from JAVA using JNI?

Posted on 2006-11-03
3
1,206 Views
Last Modified: 2012-08-13
Hi,

Can we call a VB DLL from Java? Probably using JNI? I tried using JNI to call C++ DLL, but not VB. I'm not sure whether it would be quite complicated to do that. I need some guidance from you guys. Thanks.


Regards,
rospcc
0
Comment
Question by:rospcc
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 13

Assisted Solution

by:marchent
marchent earned 250 total points
ID: 17872724
u can do this using jacob, a third party tools, download from http://sourceforge.net/projects/jacob-project/
here some sample code http://danadler.com/jacob/

~marchent~



0
 

Author Comment

by:rospcc
ID: 17872826
we have to use third party tool to link is it? Is there a way to directly call the DLL like C++?
0
 
LVL 14

Accepted Solution

by:
hoomanv earned 250 total points
ID: 17873054
If you know how to call the functions of that dll through C++, then its not hard as you can wrap all those functions accrording to the JNI paradigm to create a C++ dll which acts as an interface between Java and the original VB dll

Java <--> JNI DLL< --> VB DLL
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question