[vtkusers] the next unsatisfiedLinkError (no vtkJava in java.library.path)

Jeff Lee jeff at cdnorthamerica.com
Wed Oct 25 14:14:58 EDT 2000


You may want to set the CLASSPATH environment variable to $VTK_HOME/java as well as the
current directory.  Something like "setenv CLASSPATH /home/me/vtk/java:."  libvtkJava.so is in
that directory, and the package is defined with respect to that directory.  Hope that helps,
-Jeff

Karin Faulhaber wrote:

> Hi again,
>
> thanks a lot, I could solve my UnsatisfiedLinkError/OSMesaMakeCurrent
> problem by configuring with --with-opengl instead of --with-mesa - how
> you suggested.
> But there doesn't seem to be an end to it. The next one (and this seems
> to be a common one):
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkJava in
> java.library.path
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java, Compiled
> Code)
>         at java.lang.Runtime.loadLibrary0(Runtime.java, Compiled Code)
>         at java.lang.System.loadLibrary(System.java, Compiled Code)
>         at vtk.vtkPanel.<clinit>(vtkPanel.java:23)
>         at sphere.<init>(sphere.java, Compiled Code)
>         at sphere.main(sphere.java, Compiled Code)
>
> My LD_LIBRARY_PATH is on the directory where I put links to all the
> .so-files (just how it is suggested in the linux-howto). But on the
> other hand, when I look into the file "vtkPanel.java" at line 23 it says
>
> static { System.loadLibrary("vtkJava"); }
>
> and - there isn't any libvtkJava.so, only
> libVTKCommonJava.so
> libVTKContribJava.so
> libVTKGraphicsJava.so
> libVTKImagingJava.so
>
> Can anyone think of a solution?
> Thanks a lot!!!
>
> Karin
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

--
J.A. Lee
Software Engineer
Computational Dynamics North America
3 Schoolhouse Lane
Etna NH, 03750
ph: 603-643-9993 x109, fax: 603-643-9994


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20001025/03a36ad9/attachment.htm>


More information about the vtkusers mailing list