• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to execute DLL file using Java ?  RSS feed

 
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
 
Java Cowboy
Sheriff
Posts: 16078
88
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.
 
Marshal
Posts: 56898
174
  • 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
Boost this thread!