• Post Reply Bookmark Topic Watch Topic
  • New Topic

access methods in dll file from JAVA code

 
Sergey Kargopolov
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
I have a product. This product comes with some dll files. And it has lots of examples on how to use these dlls with VB5.
I need to develop some code using this dlls but with JAVA. Each dll has many methods and many properties. I read about JNI and I do not think that JNI is a solution to my problem. I do not know C/C++; and If I use JNI I will have to code lots of C.
Is there any other way for JAVA code to access DLL and run its methods? a simple way which will require knowledge of JAVA API not C or C++?
I have tried JACOB project but could not find any documentation on his API and was not able to figure out how to work with it.
 
Vinod Chandana
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Go to the following link. May be this info. can be helpful.
http://forum.java.sun.com/thread.jsp?thread=95493&forum=52&message=248295
Regards,
Vinod.

Originally posted by Sergey Kargopolov:
Hello!
I have a product. This product comes with some dll files. And it has lots of examples on how to use these dlls with VB5.
I need to develop some code using this dlls but with JAVA. Each dll has many methods and many properties. I read about JNI and I do not think that JNI is a solution to my problem. I do not know C/C++; and If I use JNI I will have to code lots of C.
Is there any other way for JAVA code to access DLL and run its methods? a simple way which will require knowledge of JAVA API not C or C++?
I have tried JACOB project but could not find any documentation on his API and was not able to figure out how to work with it.
 
Sergey Kargopolov
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You very much for Your reply.
But these projects are all commercial. I wonder if there is another way.
I am sure I am not the first person who needs to access methods in DLL files from java code. And I think there should be more solutions to this problem.
 
Sergey Kargopolov
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I learned that Sun's Java-Com bridge is a part of this plagin http://java.sun.com/products/plugin/
Does it allow my java program to call dll file methods? how does it work? generates java stubs? I could not find any tutorial on sun's web site.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!