Skip to Main Content

Java HotSpot Virtual Machine

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!

How can i add a library path for a .dll library?

843829Oct 12 2002 — edited Oct 14 2002
hi
i used a native method (sndPlaySound) in a dll file (winmm.dll).
then i complided my source successfuly , but in runtime i recieve
this Exception :
Exception in thread "main" java.lang.UnsatisfiedLinkError: no winmm.dll in java.
library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at JNItest.<clinit>(JNItest.java:9)
i know i must add the library path to the java.library.path but
i don't find "java.library.path" and don't know what i must to do.
i am in windows 98 and don't use any IDE (just jdk 1.3.1).
thank you very much.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 11 2002
Added on Oct 12 2002
1 comment
216 views