aspose file tools
The moose likes Java in General and the fly likes Including .dll in .jar files Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply locked New topic
Author

Including .dll in .jar files

Vijaishanker bala
Ranch Hand

Joined: Sep 08, 2005
Posts: 82
hi,
I am developing a plugin for eclipse which takes an external jar file. For this jar file to perform it's function, it requires yet another 2 .dll files. How do I add/reference the dll files in the plugin, if i have to do it using the classpath, what will the syntax look like, considering the fact that the dll files are C:/windows/system32/jawin.dll and D:/ematrix/mqlio32u.dll.
Thanks in advance

vijai


When you say "I wrote a program that crashed Windows," people just stare at you blankly and say "Hey, I got those with the system, for free." <br />Linus Torvalds
Norm Radder
Ranch Hand

Joined: Aug 10, 2005
Posts: 681
I don't think the OS will look in a jar file to find a dll. It probably looks on a special path such as the PATH environment variable holds and possibly the current directory.

How does your code reference the dll? Does is use JNI or some other OS specific code?

> what will the syntax look like
What syntax are you talking about?
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

Also being discussed here, so I'm closing this. Have a look at here when you have a chance, please.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Including .dll in .jar files
 
Similar Threads
jsp - jar - dll
help regarding eclipse plugin, VM arguments
creating jar file from eclipse
JAR inclues native code
dll in a Jar File