<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hello users
<p>I am having a few probelms trying to get java to work with VTK.
I am on Redhat 7.2 and jdk1.3.1_02 version. TCL scripts given in
the exmaple runs ok, but java examples on the VTK website and in Example
directory fails. I read the postings in the archive, and made changes
as suggested, but I still get the following error
<p>my code compiles ok, but has the following error when i try to run it
<br><font color="#3366FF">[satheesh@localhost satheesh]$ javac test.java</font>
<br><font color="#FF0000">Exception in thread "main" java.lang.UnsatisfiedLinkError:
/home/satheesh/vtk/VTK/bin/libvtkRenderingJava.so: /home/satheesh/vtk/VTK/bin/libvtkRenderingJava.so:
undefined symbol: JAWT_GetAWT</font>
<br><font color="#FF0000"> at
java.lang.ClassLoader$NativeLibrary.load(Native Method)</font>
<br><font color="#FF0000"> at
java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1419)</font>
<br><font color="#FF0000"> at
java.lang.ClassLoader.loadLibrary(ClassLoader.java:1343)</font>
<br><font color="#FF0000"> at
java.lang.Runtime.loadLibrary0(Runtime.java:749)</font>
<br><font color="#FF0000"> at
java.lang.System.loadLibrary(System.java:820)</font>
<br><font color="#FF0000"> at
test.<clinit>(test.java:13)</font><font color="#FF0000"></font>
<p>My LD_LIBRARY_PATH is set as follows
<p><font color="#3366FF">[satheesh@localhost satheesh]$ echo $LD_LIBRARY_PATH</font>
<br><font color="#FF0000">/home/satheesh/vtk/VTK/bin</font>
<p>When I run ccmake, I have the following settings in CMakeCache.txt
<br><font color="#3366FF">//What is the path where the file jawt.h can
be found</font>
<br><font color="#CC0000">JAVA_AWT_INCLUDE_PATH:PATH=/usr/java/jdk1.3.1_02/include</font><font color="#CC0000"></font>
<p><font color="#3366FF">//Where can the jawt library be found</font>
<br><font color="#CC0000">JAVA_AWT_LIBRARY:FILEPATH=/usr/java/jdk1.3.1_02/jre/lib/i386/libjawt.so</font><font color="#CC0000"></font>
<p><font color="#3366FF">//What is the path where the file jni.h can be
found</font>
<br><font color="#CC0000">JAVA_INCLUDE_PATH:PATH=/usr/java/jdk1.3.1_02/include</font><font color="#CC0000"></font>
<p><font color="#3366FF">//What is the path where the file jni_md.h can
be found</font>
<br><font color="#CC0000">JAVA_INCLUDE_PATH2:PATH=/usr/java/jdk1.3.1_02/include/linux</font><font color="#3366FF"></font>
<p><font color="#3366FF">//Single output directory for building all libraries.</font>
<br><font color="#CC0000">LIBRARY_OUTPUT_PATH:PATH=/home/satheesh/vtk/VTK/bin</font>
<p>Any help/suggestions on solving this error will be greatly appreciated
<p>regards
<br>satheesh</html>