• 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
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Calling DLL function

 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

How can I call a dll function from a java class ?
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try J/Direct
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 681
Mac
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Sahil Sharma:
Hi,

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



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic