Greenhorn
Configure the JVM's java.library.path property, which can be done in two ways: By specifying the JVM argument as shown in the following example: -Djava.library.path=pathtolibrarydirectory. For example, for a 64-bit JVM on Linux® for a default location installation, specify. Modify the Java Library Path. Instructions for adding the visualsciences.dll to the Tomcat java library path. On your Windows server, navigate to Tomcat installation directory. (Tomcat bin) Under bin folder, run Tomcat9w.exe (common daemon service manager). In the Java tab, under Java options, add a new line.
posted 15 years agoOptional 'thank-you' note:
Hey... I get the error message...
java.lang.UnsatisfiedLinkError: nativeLoadProlog
at Int386w.nativeLoadProlog(Native Method)
at Int386w.loadProlog(INT386w.java:28)
at FlexIS.loadFlex(FlexIS.java:21)
at FlexEG.<init>(FlexEG.java:30)
at FlexEG.main(FlexEG.java:18)
How do you set a library path in java??
Ranch Hand
posted 15 years agoOptional 'thank-you' note:
You don't set it in java, but in the OS.
On linux:
author and iconoclast
posted 15 years agoOptional 'thank-you' note:
That's one way -- works on UNIX variants only. You can also put the libraries on the PATH (works for Windows only). Or you can do things the portable way, and use the special system property for this: it's java.library.path, as in
java -Djava.library.path=c:wherever Foo
Now, 'Kesh', you need to check out our policy on display names, and adjust your accordingly by visiting this page. Thank you kindly!
Java Library Path Intellij
Greenhorn
posted 15 years agoOptional 'thank-you' note:

Hi... Thanks for your help.. I'm trying to connect flex (expert system shell) with java..
Even though i set the library path it still doesn't seem to work..........
Can u suggest any other way?? why do i keep on getting the same error??
Ranch Hand
posted 15 years agoOptional 'thank-you' note:
Java Library Path Command Line
The java.library.path thing does work fine, as does LD_LIBRARY_PATH on Unix-like platforms. If your program isn't working, then you need to look carefully at what files are where etc. and to read the JNI documentation carefully.
There are other ways to connect Java native methods to their underlying native implementations. Your native code can load the library itself explicitly, using platform-specific code (e.g. LoadLibrary() on Windows). It can then use the JNI RegisterNatives() function to link functions in the library to Java native methods. This also frees you from naming the native functions according to the rather long-winded JNI function names.
Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Java_library_path
Ranch Hand
posted 15 years agoOptional 'thank-you' note:
Java Library Path Vs Classpath
Originally posted by Ernest Friedman-Hill:
Or you can do things the portable way, and use the special system property for this: it's java.library.path, as in
java -Djava.library.path=c:wherever Foo
Java Library Path Eclipse
c: - very portable, indeed.