File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to execute DLL file using Java ?

 
Prakash Karuppusamy
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how to execute DLL file using Java ?

Thanks,
Prakash Karuppusamy
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Pie
Posts: 15150
31
Android IntelliJ IDE Java Scala Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47216
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult a question for "beginning Java". Moving thread.
 
Prakash Karuppusamy
Greenhorn
Posts: 7
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you friends
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic