[Open Office] JRE register fails when building 2.0.4 on Mandriva 2007 x86_64

Atle Nissestad atle.nissestad at norbit.no
Thu Oct 19 07:13:27 EDT 2006


I'm trying to build OpenOffice 2.0.4 w/ ooo-build 2.0.4 (cvs 20061017)
on Mandriva 2007.0 x86_64, but the build fails at testtools/bridgetest:

regcomp -register -r ../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb -c
javaloader.uno.so \
        -c javavm.uno.so -c uriproc.uno.so
[Java framework] The JRE specified by the bootstrap variable
UNO_JAVA_JFW_JREHOME  or  UNO_JAVA_JFW_ENV_JREHOME  could not be
recognized. Check the values and make sure that you use a plug-in
library that can recognize that JRE.javaldx failed!
register component 'javaloader.uno.so' in registry
'../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb' succesful!
register component 'javavm.uno.so' in registry
'../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb' succesful!
register component 'uriproc.uno.so' in registry
'../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb' succesful!
mkdir ../../unxlngx6.pro/lib/
mkdir: cannot create directory `../../unxlngx6.pro/lib/': File exists
cd ../../unxlngx6.pro/lib &&  regcomp -register -br uno_types.rdb -r
uno_services.rdb\
        -c acceptor.uno.so \
        -c bridgefac.uno.so \
        -c connector.uno.so \
        -c remotebridge.uno.so \
        -c uuresolver.uno.so \
        -c bridgetest.uno.so \
        -c cppobj.uno.so \
        -c uriproc.uno.so \
        -c constructors.uno.so
[Java framework] The JRE specified by the bootstrap variable
UNO_JAVA_JFW_JREHOME  or  UNO_JAVA_JFW_ENV_JREHOME  could not be
recognized. Check the values and make sure that you use a plug-in
library that can recognize that JRE.javaldx failed!
register component 'acceptor.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'bridgefac.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'connector.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'remotebridge.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'uuresolver.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'bridgetest.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'cppobj.uno.so' in registry 'uno_services.rdb' succesful!
register component 'uriproc.uno.so' in registry 'uno_services.rdb'
succesful!
register component 'constructors.uno.so' in registry 'uno_services.rdb'
succesful!
regcomp -register -br ../../unxlngx6.pro/lib/uno_types.rdb -r
../../unxlngx6.pro/lib/uno_services.rdb \
        -c javaloader.uno.so -c javavm.uno.so
[Java framework] The JRE specified by the bootstrap variable
UNO_JAVA_JFW_JREHOME  or  UNO_JAVA_JFW_ENV_JREHOME  could not be
recognized. Check the values and make sure that you use a plug-in
library that can recognize that JRE.javaldx failed!
register component 'javaloader.uno.so' in registry
'../../unxlngx6.pro/lib/uno_services.rdb' succesful!
register component 'javavm.uno.so' in registry
'../../unxlngx6.pro/lib/uno_services.rdb' succesful!
regcomp -register  -br ../../unxlngx6.pro/misc/bridgetest/bootstrap.rdb
-r ../../unxlngx6.pro/lib/uno_services.rdb -c \
      
file:///home/src/rpm/BUILD/ooo-build/build/OOO_2_0_4/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar
\
      
-env:URE_INTERNAL_JAVA_DIR=file:///home/src/rpm/BUILD/ooo-build/build/OOO_2_0_4/solver/680/unxlngx6.pro/bin
[Java framework] The JRE specified by the bootstrap variable
UNO_JAVA_JFW_JREHOME  or  UNO_JAVA_JFW_ENV_JREHOME  could not be
recognized. Check the values and make sure that you use a plug-in
library that can recognize that JRE.javaldx failed!
[Java framework] The JRE specified by the bootstrap variable
UNO_JAVA_JFW_JREHOME  or  UNO_JAVA_JFW_ENV_JREHOME  could not be
recognized. Check the values and make sure that you use a plug-in
library that can recognize that JRE.register component
'file:///home/src/rpm/BUILD/ooo-build/build/OOO_2_0_4/testtools/source/bridgetest/../../unxlngx6.pro/class/testComponent.jar'
in registry '../../unxlngx6.pro/lib/uno_services.rdb' failed!
error (RuntimeException): [JavaVirtualMachine]:An unexpected error
occurred while starting Java!
using loader com.sun.star.loader.Java2
dmake:  Error code 1, while making '../../unxlngx6.pro/lib/uno_services.rdb'
dmake:  '../../unxlngx6.pro/lib/uno_services.rdb' removed.
'---* tg_merge.mk *---'

I'm using GNU java (--with-java=gij), and this is the only java env.
installed on my system.
The error seems to be very similar to what is reported in this thread:
http://lists.ximian.com/pipermail/openoffice/2006-June/001867.html

I have tried the disable-regcomp-java.diff patch posted in this thread
=> no difference
I've also tried exporting
UNO_JAVA_JFW_ENV_JREHOME=file:///usr/lib/jvm/java-gcj => no difference
and I've tried setting
'-env:UNO_JAVA_JFW_ENV_JREHOME=file:///usr/lib/jvm/java-gcj' on the
regcomp cmd line (in bridgetest makefile) => no difference.

The gcc/glibc versions are: 4.1.1/2.4 (and java-1.4.2-gcj-compat 1.4.2.0
is installed).

Does anyone have any clues on what is going on here ? Is there a patch I
have missed ?

Atle Nissestad



More information about the Openoffice mailing list