Solved

How to call VB DLL from JAVA using JNI?

Posted on 2006-11-03
3
1,217 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

695 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