• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Calling DLL function

 
Sahil Sharma
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I call a dll function from a java class ?
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try J/Direct
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
All I can find on J/Direct is a feature of the Microsoft JVM or JDirect (with no slash) for Apple. Is there something else I'm missing?

JNI is the usual Java technology for this. You have to make a custom DLL that understands JNI but it can call any other DLL through standard calls.

Java -> JNI -> Custom DLL -> Call -> other DLL

You can also Google for "java com bridge" and find a number of free and commercial products that will do COM calls. The quality and price varies termendously.
[ December 28, 2005: Message edited by: Stan James ]
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the engineer is capable enough of giving custom DLL so you don't need to follow long hiearchy.
.
Java -> JNI -> Custom DLL -> Call -> other DLL

JNI->Custom DLL is enough

JNI is a efficient solution then trying anything else.

The other efficietn way of doing, avoid DLL and go for webservice.
So java webservice calls the other technology webservice.
 
Rick O'Shay
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Sahil Sharma:
Hi,

How can I call a dll function from a java class ?


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic