This week's book giveaway is in the Spring forum.
We're giving away four copies of Modern frontends with htmx and have Wim Deblauwe on-line!
See this thread for details.
Win a copy of Modern frontends with htmx this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

access methods in dll file from JAVA code

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic