Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How to set PATH LIBRARY java

i run java eclipse with VTK but can't run
output show
Exception in thread "main" java.lang.UnsatisfiedLinkError: no libvtkCommon.5.4.2.dylib in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1792)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at Cone.<clinit>(Cone.java:17)

I try set PATH library but it not work
Help me pls
thank you

MacBookPro, Mac OS X (10.6.2)

Posted on Mar 24, 2010 1:45 AM

Reply
4 replies

Mar 24, 2010 5:18 AM in response to munkung

Java in OS X is no different than elsewhere.


java -Djava.library.path=/path/to/your/library/here /path/to/your/mainClassOrJarHere


Note that the PATH environment label is used for finding executables, it have nothing to do with Java. That said, on non-Windows systems, the default value of java.library.path is taken from the value of the environment variable LD LIBRARYPATH, so I suppose that if you wanted a UNIX-specific solution, you could do that too.

How to set PATH LIBRARY java

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.