[vtkusers] java Exception with vtk
wells
jake_wang1013 at 163.com
Thu Feb 21 04:19:18 EST 2008
hi
I ran a single java program, and throw an exception. like following:
DanyLeeMacbook-4:dist wells$ java -jar vtkSample.jar
java.library.path:.:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java
Exception in thread "main" java.lang.UnsatisfiedLinkError: no
vtkCommonJava in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1753)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1030)
at vtk.vtkPanel.<clinit>(vtkPanel.java:26)
at vtksample.VTKSample.main(VTKSample.java:32)
then I and path into java.library.path ,like following:
DanyLeeMacbook-4:dist wells$ java -D java.library.path=":/Library/Java/
Extensions:/System/Library/Java/Extensions:/usr/lib/java:/Users/wells/
vJavaBin/lib/Extensions" -jar vtkSample.jar
Exception in thread "main" java.lang.NoClassDefFoundError: java/
library/path=:/Library/Java/Extensions:/System/Library/Java/
Extensions:/usr/lib/java:/Users/wells/vJavaBin/lib/Extensions
Caused by: java.lang.ClassNotFoundException:
java
.library
.path
=
:.Library
.Java
.Extensions
:.System
.Library
.Java.Extensions:.usr.lib.java:.Users.wells.vJavaBin.lib.Extensions
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:316)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:288)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
There are dylibs in "/Users/wells/vJavaBin/lib/Extensions" .
Can any one help me! Thanks !
-wells
More information about the vtkusers
mailing list