To comment on the following update, log in, then open the issue: http://www.openoffice.org/issues/show_bug.cgi?id=62071 Issue #:|62071 Summary:|configure with ant needs JAVACMD Component:|porting Version:|680m155 Platform:|Sun URL:| OS/Version:|Linux Status:|NEW Status whiteboard:| Keywords:| Resolution:| Issue type:|DEFECT Priority:|P3 Subcomponent:|code Assigned to:|mh Reported by:|sparcmoz
------- Additional comments from [EMAIL PROTECTED] Tue Feb 14 23:03:06 -0800 2006 ------- In summary, if there is no "java" command, then ant wants JAVACMD to be set. Building m155 on GNU/Linux sparc with gcc4.1/gcj Ant does not work when I run configure --with-ant-home=/usr/local/apache-ant-1.6.5 --with-java=gij --with-jdk-home=/usr/local/4.1 checking for jakarta-ant... no checking for ant... /usr/local/apache-ant-1.6.5/bin/ant checking if /usr/local/apache-ant-1.6.5/bin/ant works... configure: WARNING: Ant does not work - Some Java projects will not build! And the environment is not exported correctly: ANT_HOME="NO_ANT_HOME" ANT="/usr/local/apache-ant-1.6.5/bin/ant" If I try directly ant complains: [EMAIL PROTECTED]:~/build680/config_office$ /usr/local/apache-ant-1.6.5/bin/ant Error: JAVA_HOME is not defined correctly. We cannot execute java So I set [EMAIL PROTECTED]:~/build680/config_office$ export JAVA_HOME=/usr/local/4.1 [EMAIL PROTECTED]:~/build680/config_office$ /usr/local/apache-ant-1.6.5/bin/ant Error: JAVA_HOME is not defined correctly. We cannot execute /usr/local/4.1/bin/java Thats right there is no java [EMAIL PROTECTED]:~/build680/config_office$ ls /usr/local/4.1/bin/java ls: /usr/local/4.1/bin/java: No such file or directory I am building with gcj: [EMAIL PROTECTED]:~/build680/config_office$ ls /usr/local/4.1/bin/gcj /usr/local/4.1/bin/gcj The message comes from the tail of ant: if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." echo " We cannot execute $JAVACMD" exit 1 fi If I export JAVACMD=/usr/local/4.1/bin/gij then configure runs OK checking for jakarta-ant... no checking for ant... /usr/local/apache-ant-1.6.5/bin/ant checking if /usr/local/apache-ant-1.6.5/bin/ant works... Ant works checking Ant lib directory... Ant lib directory found. And the environment looks good: ANT_HOME="/usr/local/apache-ant-1.6.5" ANT_LIB="/usr/local/apache-ant-1.6.5/lib" ANT="/usr/local/apache-ant-1.6.5/bin/ant" In summary, if there is no "java" command, then ant wants JAVACMD to be set. Tested with xmerge, bean, beanshell - and no more patches needed in ant.mk postscript: Ant projects will still complain Unable to locate tools.jar. Expected to find it in /usr/local/4.1/lib/tools.jar Buildfile: build.xml - but I think that should be a different issue? --------------------------------------------------------------------- Please do not reply to this automatically generated notification from Issue Tracker. Please log onto the website and enter your comments. http://qa.openoffice.org/issue_handling/project_issues.html#notification --------------------------------------------------------------------- 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]