[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
Yu Kang
ky98132 at gmail.com
Sun Jul 30 04:37:17 EDT 2006
vtk 5.0
j2sdk 1.4.2_08
gcc 3.4.3
BUILD_SHARED_LIBS = ON
export VTK_DIR=//usr/local/vtk
export LD_LIBRARY_PATH=$VTK_DIR/bin:$LD_LIBRARY_PATH
compiling and executing Cone.java
javac -classpath /usr/local/vtk/bin/vtk.jar Cone.java
java -classpath /usr/local/vtk/bin/vtk.jar Cone
Exception in thread "main" java.lang.NoClassDefFoundError: Cone
In eclipse IDE with the same source code, I get the following
Exception in thread "main" java.lang.UnsatisfiedLinkError: VTKInit
at vtk.vtkConeSource.VTKInit(Native Method)
at vtk.vtkObject.<init>(vtkObject.java:90)
at vtk.vtkAlgorithm.<init>(vtkAlgorithm.java:246)
at vtk.vtkPolyDataAlgorithm.<init>(vtkPolyDataAlgorithm.java:58)
at vtk.vtkConeSource.<init>(vtkConeSource.java:114)
at Cone.main(Cone.java:35)
also I get the java.library.path:
/usr/java/j2sdk1.4.2_08/jre/lib/i386/client:/usr/java/j2sdk1.4.2_08/jre/lib/i386:/usr/java/j2sdk1.4.2_08/jre/../lib/i386:/usr/local/vtk/bin:/usr/lib/mozilla-1.7.3
I try some suggestions on internet but result doesn't change.
any help will be appreciated
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060730/94ee9587/attachment.htm>
More information about the vtkusers
mailing list