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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
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
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

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: 37918
    
  22
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://aspose.com/file-tools
 
subject: how to execute DLL file using Java ?
 
Similar Threads
how to call .dll in java
how to run dll using java
DLL FIle
How to load a dll file in a webservice project.
JNI and DLL