By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,541 Members | 1,105 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,541 IT Pros & Developers. It's quick & easy.

problem with java.library.path

P: n/a
Hello,

I am working with JDK 1.4.2 on windows 2000.

I have a JNI dll in the folder c:\src\bin

So, I make the following call:

java -classpath MyClassPath -Djava.library.path=c:\src\bin MyApp.app

But, the directory is ignored. and I get an Unsatisfied link error.

If I put "c:\src\bin" in the PATH, then everything is fine.
Any ideas?

Thanks.

Aaron Boxer

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Aaron,

"Aaron Boxer" <aa***@oti-canada.com> wrote in message
news:As********************@news20.bellglobal.com. ..
Hello,

I am working with JDK 1.4.2 on windows 2000.

I have a JNI dll in the folder c:\src\bin

So, I make the following call:

java -classpath MyClassPath -Djava.library.path=c:\src\bin
MyApp.app

But, the directory is ignored. and I get an Unsatisfied link error.

If I put "c:\src\bin" in the PATH, then everything is fine.


Under Windows-family OS '.dll' file location needs to be specified in the
PATH environment variable in ordr for the JVM to locate it [load it using
'System.loadLibrary']. I'm fairly sure this is as things should be :) !

I hope this helps.

Anthony Borla
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.