[vtkusers] java.lang.UnsatisfiedLinkError: VTKInit
Chase Yarbrough
vergil at gmail.com
Sun Jul 30 11:46:59 EDT 2006
Hi Yu,
It seems that you've left the current directory off your classpath, so
it can't find cone.class. Try
java -classpath /usr/local/vtk/bin/vtk.jar:. Cone
HTH,
Chase
Yu Kang wrote:
> 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
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list