[vtkusers] is this a bug? should I file it somewhere?
Sebastien Jourdain
sebastien.jourdain at kitware.com
Thu May 2 09:04:17 EDT 2013
Hi Ilan,
if you pay attention at the CMake properties that get setup when you
build VTK with the Java wrapping you will notice the following.
JAVA_AWT_INCLUDE_PATH /usr/lib/jvm/java-6-sun/include
JAVA_AWT_LIBRARY /usr/lib/jvm/java-6-sun/jre/lib/amd64/libjawt.so
JAVA_INCLUDE_PATH /usr/lib/jvm/java-6-sun/include
JAVA_INCLUDE_PATH2 /usr/lib/jvm/java-6-sun/include/linux
JAVA_JVM_LIBRARY
/usr/lib/jvm/java-6-sun/jre/lib/amd64/server/libjvm.so
Java_JAR_EXECUTABLE /usr/bin/jar
Java_JAVAC_EXECUTABLE /usr/bin/javac
Java_JAVADOC_EXECUTABLE /usr/bin/javadoc
Java_JAVAH_EXECUTABLE /usr/bin/javah
Java_JAVA_EXECUTABLE /usr/bin/java
As you can see, CMake tell you which of the libjawt.so is using to
link against...
Seb
On 5/2/13, Ilan <ilan.tal at gmail.com> wrote:
> Hi Seb,
> I got busy with other problems so that I didn't try out your idea until
> today. The reason for multiple libjwt.so is that Fiji comes with its own
> Java so that it will run even if the user has no Java installed. In my case
> I have both JDK6 and JDK7 installed. So there are indeed multiple versions
> floating around and I just need to live with it.
>
> To test your idea I went for brute force as an initial step. I can always
> improve later on, but first I want to test the idea. I just copied over all
> the Fiji java since I know it is 1.6, which is the way I copied the vtk.
>
> Your statement is:
> The reason is when you build vtk with the Java wrapping, the rendering
> library get linked to the jawt library, then at runtime, you need to make
> sure it find it again.
>
> My question is: does it find libjawt.so even the first time around? I have
> serious doubts that it even really looks for it when doing the java wrap.
> My
> guess that JAWT_GetAWT is just something which is half defined, and maybe I
> need some switch to guarantee that it is totally defined.
>
> When I run Fiji in a terminal I get:
> ilan at ilan-Len-G585:~/Fiji.app$ ./ImageJ-linux64
> 1: sun.misc.Launcher$AppClassLoader at 77cde100
> 2: sun.misc.Launcher$AppClassLoader at 77cde100
> 3: sun.misc.Launcher$AppClassLoader at 77cde100
> ./ImageJ-linux64: symbol lookup error:
> /home/ilan/Fiji.app/lib/linux64/libvtkRenderingJava.so.5.10.1: undefined
> symbol: JAWT_GetAWT
>
> This leads me to believe that it was never defined at compile or link time
> and that I am missing some switch. However I have no idea what the switch
> could be. The fact that the program simply crashes is really not very nice.
> I'm really stuck with what I can do about it.
>
> Thanks,
> Ilan
>
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/is-this-a-bug-should-I-file-it-somewhere-tp5720281p5720523.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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