Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Unable to Load DLL in java application

693016Apr 7 2009 — edited Apr 7 2009
Hi 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 5 2009
Added on Apr 7 2009
0 comments
274 views