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
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: 14432
    
  23

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 8 API documentation
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
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 ?