Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to execute DLL file using Java ?

 
Prakash Karuppusamy
Greenhorn
Posts: 7
Eclipse IDE Java Spring
  • 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
Posts: 15288
39
Android IntelliJ IDE Java Scala Spring
  • 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: 48981
60
  • 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
Eclipse IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you friends
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic