Apache OpenOffice (AOO) Bugzilla – Issue 68998
gnujre: libjvm.so path
Last modified: 2006-09-27 10:24:06 UTC
It looks for /opt/gcj-4.2.0_alpha20060826/lib/lib/i386/client/libjvm.so. Shouldn't it look for /opt/gcj-4.2.0_alpha20060826/jre/lib/i386/client/libjvm.so?
Created attachment 38807 [details] find JAVA_HOME/jre/lib/" JFW_PLUGIN_ARCH "/client/libjvm.so
cmc->geki: Does the alternative patch at issue 68665 work instead ? i.e. give the sun-style java.home property a go when searching for the new sun-style libjvm.so ? That should in theory be about the best way to keep the older non-sun-style libgcj's working as well as the new sun-style libjvm.so's
Still fails to find libjvm.so.
can you rm ~/.openoffice.org2 (or whatever it is) and strace /usr/lib/openoffice.org2/program/javaldx and add the output here additionally, if you could take the attached demo.class and run /opt/.../gij demo what does it say ?
Created attachment 38931 [details] demo.class
Created attachment 38932 [details] testtools error
Created attachment 38933 [details] strace javaldx
Created attachment 38934 [details] with correct LD_LIBRARY_PATH
Created attachment 38935 [details] with correct LD_LIBRARY_PATH
oh, this is at build time, not at run-time. In that case what is the value of JAVA_HOME inside the build env ? what --with-jdk-home passed to configure ? if so with what value. This might boil down to detecting in configure that we are using a new gcj with libjvm.so and require (automatically detect an appropiate?) --with-jdk-home like the sun one for the new gcj, e.g. I configure with --with-jdk-home=/usr/lib/jvm/java-1.4.2-gcj
$ LD_LIBRARY_PATH=/opt/gcj-4.2.0_alpha20060826/lib gij demo /opt/gcj-4.2.0_alpha20060826 file:///opt/gcj-4.2.0_alpha20060826/lib
So, in summation I think that 68665 is still required anyway, and that the specific problem here is that the output below should instead be $ LD_LIBRARY_PATH=/opt/gcj-4.2.0_alpha20060826/lib gij demo /opt/gcj-4.2.0_alpha20060826 file:///opt/gcj-4.2.0_alpha20060826/jre which is controlled with the gcc configure option --with-jdk-home
so, let's call this a duplicate of 68665 which asks gcj for the jvm location, and this is set by how gcc is configured, which is outside of OOo's scope *** This issue has been marked as a duplicate of 68665 ***
close as dup