https://bugzilla.novell.com/show_bug.cgi?id=467866 Summary: fop fails if JAVACMD_OPTS is set Classification: openSUSE Product: openSUSE 11.1 Version: RC 2 Platform: All OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: Apache AssignedTo: bnc-team-apache@forge.provo.novell.com ReportedBy: ajmay81@googlemail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-GB; rv:1.9.0.5) Gecko/2008121300 SUSE/3.0.5-1.1 Firefox/3.0.5 The fop program fails if JAVACMD_OPTS is set. In the file /usr/share/java-utils/java-functions there are the lines: if [ -n "$JAVACMD_OPTS" ]; then JAVACMD="$JAVACMD $JAVACMD_OPTS" fi but this causes problems with fop which expects only the executable, in /usr/share/fop/fop: if [ ! -x "$JAVACMD" ] ; then echo "Error: JAVA_HOME is not defined correctly." echo " We cannot execute $JAVACMD" exit 1 fi and also the exec stuff at the bottom of the file. This is a major problem since one needs to set JAVACMD_OPTS to run on non-graphical system, see: http://xmlgraphics.apache.org/fop/0.95/graphics.html#batik for details. This did not happen in openSuSE 11.0 which shipped with fop-0.94. Actually in that case one did not need to set the JAVACMD_OPTS since it worked in a non-graphical environment out of the box. Reproducible: Always Steps to Reproduce: 1. zypper in fop 2. sed -e 's/JAVACMD_OPTS=/JAVACMD_OPTS="-Djava.awt.headless=true"/g' /etc/java/java.conf 3. Try to run fop Actual Results: Error: JAVA_HOME is not defined correctly. We cannot execute /usr/lib64/jvm/java/bin/java -Djava.awt.headless=true -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.