[vtkusers] vtk4.0 Java Errors

J.A. Lee jeff at cdnorthamerica.com
Mon Jan 14 07:41:34 EST 2002


Hi Peter,
0. yes
1. should be libjawt.so
2. JAVA_AWT_LIBRARY:FILEPATH=/usr/local/java/jre/lib/i386/libjawt.so
3. correct the above and rerun cmake
4. cmake should work out the dependencies.
-Jeff

Peter J. Carr wrote:

> I just built vtk4.0 (Linux - RedHat 7.2) but get the following error 
> when testing java via Regression.java. I have Sun's JDK1.3.1 installed 
> in /usr/local/java.
>
> java -classpath .:vtk4.0.jar Regression
> Exception in thread "main" java.lang.UnsatisfiedLinkError: 
> /home/pcarr/vtk/vtk4.0/VTK/lib/libvtkRenderingJava.so: 
> /home/pcarr/vtk/vtk4.0/VTK/lib/libvtkRenderingJava.so: undefined 
> symbol: JAWT_GetAWT
>     at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>     at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382)
>     at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306)
>     at java.lang.Runtime.loadLibrary0(Runtime.java:749)
>     at java.lang.System.loadLibrary(System.java:820)
>     at Regression.<clinit>(Regression.java:10)
>
> A few questions:
>    0. Has anyone gotten vtk4.0 + Java to work on a Linux system? 
> Please let me know.
>
>    1. CMakeCache.txt: Is this the correct entry?
>   JAVA_AWT_LIBRARY:FILEPATH=/usr/local/java/jre/lib/i386/libawt.so
>
>    2. I previously had a different setting for 
> JAVA_AWT_LIBRARY:FILEPATH=/usr/local/java/jre/lib/i386
>
>    3. When I make changes to CMakeCache.txt what do I have to do to 
> ensure all of the necessary files get built? I would rather not 'make 
> clean' since it takes a couple hours to build everything.
>
>    4. Since it seems my problem is in libvtkRenderingJava what do I 
> need to rebuild?
>
> Thanks for any help,
> Peter Carr
>
>
>
>
>
> _______________________________________________
> 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
>
>





More information about the vtkusers mailing list