File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes how to execute DLL file using Java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to execute DLL file using Java ?" Watch "how to execute DLL file using Java ?" New topic
Author

how to execute DLL file using Java ?

Prakash Karuppusamy
Greenhorn

Joined: Nov 24, 2010
Posts: 7
how to execute DLL file using Java ?

Thanks,
Prakash Karuppusamy
Jesper de Jong
Java Cowboy
Bartender

Joined: Aug 16, 2005
Posts: 12911
    
    3

Welcome to JavaRanch.

To call functions in a DLL, you can use JNI (Java Native Interface). See: Java Native Interface: Programmer's Guide and Specification.

Note that to call those functions, they need to have a specific format. You can't easily call arbitrary functions in any DLL from Java; you might need to make your own adapter DLL, that you can call from Java, and that will then call functions in the DLL you want to use.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 32654
    
    4
Too difficult a question for "beginning Java". Moving thread.
Prakash Karuppusamy
Greenhorn

Joined: Nov 24, 2010
Posts: 7
Thank you friends
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to execute DLL file using Java ?
 
Similar Threads
JNI and DLL
how to call .dll in java
DLL FIle
How to load a dll file in a webservice project.
how to run dll using java