[vtkusers] vtk paths for java wrappings

David Cole david.cole at kitware.com
Tue Jun 20 08:11:18 EDT 2006


Try DYLD_LIBRARY_PATH...

Anastasia Mironova wrote:

> Hello,
>
> I am having a path problem with an isntallation of vtk with java 
> wrappings on my intel mac.
>
> The only directory where I can run things from seems to be the bin 
> directory containing the vtk.jar file, i.e.:
>
> if I say:
>
> :/scratch/vtk/darwin32/bin anastasia$ javac -classpath .:vtk.jar 
> Test.java
>
> :/scratch/vtk/darwin32/bin anastasia$ java -classpath .:vtk.jar Test
>
> it runs but doing this from any other directory produces this:
>
> :/scratch/vtk/darwin32/bin/TEST anastasia$ javac -classpath 
> .:../vtk.jar Test.java
>
> :/scratch/vtk/darwin32/bin/TEST anastasia$ java -classpath 
> .:../vtk.jar Test
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no 
> vtkCommonJava in java.library.path
>         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
>         at java.lang.Runtime.loadLibrary0(Runtime.java:822)
>         at java.lang.System.loadLibrary(System.java:992)
>         at Test.<clinit>(Test.java:8)
>
> This must be some kind of a path issue. From what I have read online, 
> I tried including /scratch/vtk/darwin32/bin and 
> /scratch/vtk/darwin32/bin/vtk.jar in both my PATH and in my 
> LD_LIBRARY_PATH. But, as you can from see above, this does nothing.
>
> Any advice would be greatly appreciated!
>
> -Anastasia
>
>
> _______________________________________________
> 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