Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

How to call COM comonents (VB .dll files) methods from java program

Posted on 2003-03-30
8
Medium Priority
?
721 Views
Last Modified: 2010-05-18
We have a third party .dll file (written and compiled in VB). We are migrating all our
code from MS to Java. The problem is that the java version of the .dll file is not available. Is there by any mean we can call those VB components methods from Java programs.

Thanks in advance..

Cheers
Venkat
0
Comment
Question by:s_venkataramani
7 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 256 total points
ID: 8235308
you will have to write a small C file wich calls the DLL, then call that C code via JNI...

Have a look here:

http://java.sun.com/docs/books/tutorial/native1.1/
0
 
LVL 92

Assisted Solution

by:objects
objects earned 248 total points
ID: 8235379
0
 
LVL 35

Expert Comment

by:TimYates
ID: 8235396
Or....look for a java library which does what your 3rd party DLL does
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 3

Assisted Solution

by:rjackman
rjackman earned 248 total points
ID: 8237087
try following

http://www.hcn.zaq.ne.jp/no-ji/jcom/index_eng.htm

or u can write JNI code for the same
regards
RJ
0
 
LVL 35

Assisted Solution

by:girionis
girionis earned 248 total points
ID: 8237669
 There is also the JACOB project that allows you to do this. Take a look here: http://danadler.com/jacob/
0
 

Expert Comment

by:CleanupPing
ID: 9058385
s_venkataramani:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 15

Expert Comment

by:jimmack
ID: 9735688
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Split between objects, girionis, rjackman and TimYates.

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jimmack
EE Cleanup Volunteer
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
Suggested Courses
Course of the Month15 days, 21 hours left to enroll

580 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