[vtkusers] VTK 4.1.1 libvtkRenderingJava.so problem

Jeff Lee jeff at cdnorthamerica.com
Wed Dec 4 10:03:27 EST 2002


That is strange, you shouldn't need to put path to jawt.so in your 
library path, the jvm should bring it in.  You could try 'ldd -r' on 
libvtkRenderingJava.so and see if everything looks right.
-Jeff

Andrew Usher wrote:

>Hi,
>
>The JAVA_AWT_LIBRARY:FILEPATH is set to the correct libjawt.so
>/opt/sunone/j2sdk1.4.1/jre/lib/i386/libjawt.so in my case.
>
>It really is most strange. Do you think it would be worth doinf a make
>clean and recompiling from the top?
>
>Thanks,
>
>Andrew
>
>---------------------------------------------------
>Andrew Usher
>Email: a.c.j.usher at damtp.cam.ac.uk
>---------------------------------------------------
>
>On Wed, 4 Dec 2002, Jeff Lee wrote:
>
>  
>
>>What does your CMakeCache.txt entry say for JAVA_AWT_LIBRARY:FILEPATH ?
>>It should be something like /usr/local/java/jdk/jre/lib/i386/libjawt.so
>>-Jeff
>>
>>Andrew Usher wrote:
>>
>>    
>>
>>>Hi,
>>>
>>>I'm running VTK 4.1.1 with j2sdk1.4.1 on Redhat 7.3 and keep getting
>>>following error:
>>>
>>>Exception in thread "main" java.lang.UnsatisfiedLinkError:
>>>/usr/local/lib/vtk/libvtkRenderingJava.so:
>>>/usr/local/lib/vtk/libvtkRenderingJava.so: undefined symbol: JAWT_GetAWT
>>>       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
>>>       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
>>>       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1397)
>>>       at java.lang.Runtime.loadLibrary0(Runtime.java:788)
>>>       at java.lang.System.loadLibrary(System.java:832)
>>>       at Cone.<clinit>(Cone.java:22)
>>>
>>>I've double checked the makefile to point to libjawt.so correctly and
>>>recompiled with no success. Any ideas please?
>>>
>>>I'm compiling with:
>>>
>>>javac -classpath
>>>/usr/local/vtk/VTK/Examples/Tutorial/Step1/Java:/usr/local/vtk/VTK/bin/vtk.jar
>>>Cone.java
>>>
>>>and have LD_LIBRARY_PATH set to:
>>>
>>>/usr/local/lib/vtk:
>>>/opt/sunone/j2sdk1.4.1/jre/lib/i386:
>>>/opt/sunone/j2sdk1.4.1/lib
>>>
>>>Thanks very much,
>>>
>>>Andrew
>>>
>>>      
>>>
>  
>




More information about the vtkusers mailing list