my dog learned polymorphism*
The moose likes IDEs, Version Control and other tools and the fly likes Loading DLL in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Loading DLL in eclipse" Watch "Loading DLL in eclipse" New topic

Loading DLL in eclipse

samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
Hi ranchers,
I have created a java programe which loads a DLL there by using System.loadLibrary() . It works fine when both .java , .class and .DLL files are in the same folder which is in classpath .
Now I want to call the DLL through the eclipse. Eventhough I keep the DLL in the root , JVM is not able to find the DLL .
Is there any setting that I need to do so as to invoke the DLL through the eclipse
[ March 22, 2008: Message edited by: Bear Bibeault ]
samir ware
Ranch Hand

Joined: Jul 27, 2005
Posts: 192
Hi ..
Somehow manage to load the DLL in static block there by setting the path of the DLL in the "PATH" environement varible .Now the programe runs perfectly through the command prompt but when I try to run through the eclipse I am getting an "java.Lang.UnSatisfiedLinkEroor : name of native methode"
Can anybody please tell me what the cause behind this. How can I run my programe through eclipse
I agree. Here's the link:
subject: Loading DLL in eclipse
Similar Threads
Spell checker
how to invoke a dll
accessing dll file via servlet
Jni problem
invoking vb dll functions in java