Unable to Load DLL in java application
693016Apr 7 2009 — edited Apr 7 2009Hi All,
I am facing an issue wherein I am able to run a java app from command line but not from any IDE(Eclipse/NetBeans)
I am using following command to build & run my java app on command line:
*Build:
javac -classpath ..\..\properties;..\..\java\smjavasdk2.jar;..\..\java\smjavaagentapi.jar JavaTestClient.java*
*Run:
java -Djava.library.path=..\..\bin -classpath .;..\..\properties;..\..\java\smjavasdk2.jar;..\..\java\smjavaagentapi.jar JavaTestClient*
while running the same code from Eclipse, I have tried setting the java.library.path using System.setProperty and specifying the same as run-time argument under Argument tab. I have also tried loading the library using System.load(), copying the dll files in %PATH% location but nothing is working for me.
Please throw your suggestion/ideas on this?
Thanks
Sunny
Edited by: sunnyajmera on Apr 7, 2009 5:52 PM
Edited by: sunnyajmera on Apr 7, 2009 5:52 PM