Hi,
Your are right with submitting 42305.
However, the output has nothing to to with javac. The Java framework is only invoked when Java - UNO components are invoked. This is the case when Java components are registered in instset_native.
--Joachim
NAKATA Maho wrote:
Dear all,
I'm trying to build OOo 1.9m76 with JDK 1.3 however, today I've got: ------------------------------------------------------------ % javaldx [Java framework] Using configuration file file:///work/ports/editors/openoffice-2.0-devel.jdk13/work/solver/680/unxfbsd.pro/lib/jvmfwk3rc [Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_JREHOME with JAVA_HOME = /usr/local/jdk1.3.1. [Java framework] Using bootstrap parameter UNO_JAVA_JFW_VENDOR_SETTINGS = file:///work/ports/editors/openoffice-2.0-devel.jdk13/work/solver/680/unxfbsd.pro/lib/javavendors.xml. [Java framework] sunjavaplugin: Testing class SunVersion succeeded.[Java framework] sunjavaplugin: Using configuration file file:///work/ports/editors/openoffice-2.0-devel.jdk13/work/solver/680/unxfbsd.pro/lib/sunjavapluginrc [Java framework] Executing: file:///usr/local/jdk1.3.1/bin/.java_wrapper. [Java framework] Java executed successfully. [Java framework] Java wrote to stderr:" .java_wrapper was not found in /usr/local/jdk1.3.1/bin/i386/green_threads/.java_wrapper ". [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.Assertion Failed: File /work/ports/editors/openoffice-2.0-devel.jdk13/work/jvmfwk/source/framework.cxx, Line 781: [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! ------------------------------------------------------------ what is .java_wrapper?
[Java framework] Executing: file:///usr/local/jdk1.3.1/bin/.java_wrapper.
I suspect this line:
/usr/local/jdk1.3.1/bin/.java_wrapper, but
% /usr/local/jdk1.3.1/bin/.java_wrapper .java_wrapper was not found in /usr/local/jdk1.3.1/bin/i386/green_threads/.java_wrapper
well, % ls -la /usr/local/jdk1.3.1/bin/javac lrwxrwxrwx 1 root wheel 13 1 14 20:36 /usr/local/jdk1.3.1/bin/javac@ -> .java_wrapper javac is merely a symbolic link.
Apparently SUN's jdk has .java_wrapper, % ls /usr/local/linux-sun-jdk1.3.1/bin/.java_wrapper /usr/local/linux-sun-jdk1.3.1/bin/.java_wrapper
but result is same. % /usr/local/linux-sun-jdk1.3.1/bin/.java_wrapper .java_wrapper was not found in /usr/local/linux-sun-jdk1.3.1/bin/i386/green_threads/.java_wrapper
% ls /usr/local/linux-sun-jdk1.3.1/bin/i386/*_threads/.java* ls: No match.
BTW: JDK1.4.2 doesn't have .java_wrapper.
Suspect: I think javaldx somehow executes .java_wrapper instead of javac, unaware of following symbolic link. In plugins/sunmajor/pluginlib/util.cxx, there's a line like: JFW_TRACE2(OUSTR("\n[Java framework] Executing: ") + exePath + OUSTR(".\n"));
right.
okay, applying this patch...
/** Checks if the path is a file. If it is a link to a file than it is resolved. In case of an error the returned string has the length 0 */ OUString resolveFilePath(const OUString & path)
Index: plugins/sunmajor/pluginlib/util.cxx =================================================================== RCS file: /cvs/udk/jvmfwk/plugins/sunmajor/pluginlib/util.cxx,v retrieving revision 1.6 diff -u -r1.6 util.cxx --- plugins/sunmajor/pluginlib/util.cxx 31 Jan 2005 09:50:56 -0000 1.6 +++ plugins/sunmajor/pluginlib/util.cxx 9 Feb 2005 10:21:42 -0000 @@ -833,7 +833,7 @@ it is resolved. In case of an error the returned string has the length 0 */ -OUString resolveFilePath(const OUString & path) +OUString resolveFilePath(const OUString & path, int followlink=0) { OUString sResolved = path; OUString ret; @@ -854,10 +854,15 @@ ret = sResolved; break; } - else if ( t == FileStatus::Link ) + else if ( t == FileStatus::Link && followlink==0) { sResolved = status.getLinkTargetURL(); } + else if ( t == FileStatus::Link && followlink==1) + { + ret = sResolved; + break; + } else { break; @@ -932,7 +937,7 @@ sFullPath = sResolvedDir + OUString(RTL_CONSTASCII_USTRINGPARAM("/")) + (*i);
- sFilePath = resolveFilePath(sFullPath); + sFilePath = resolveFilePath(sFullPath,1); //do not follow link
if (sFilePath.getLength() == 0) {
[Java framework] Using configuration file file:///work/ports/editors/openoffice-2.0-devel.jdk13/work/solver/680/unxfbsd.pro/lib/jvmfwk3rc [Java framework] Using bootstrap parameter UNO_JAVA_JFW_ENV_JREHOME with JAVA_HOME = /usr/local/jdk1.3.1. [Java framework] Using bootstrap parameter UNO_JAVA_JFW_VENDOR_SETTINGS = file:///work/ports/editors/openoffice-2.0-devel.jdk13/work/solver/680/unxfbsd.pro/lib/javavendors.xml. [Java framework] sunjavaplugin: Testing class SunVersion succeeded.[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.Assertion Failed: File /work/ports/editors/openoffice-2.0-devel.jdk13/work/jvmfwk/source/framework.cxx, Line 781: [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!
:( Any help is greatly appreciated. -- NAKATA, Maho
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]