Build fails while using GlassFish
March 20th, 2009
Applies to:
GlassFish, Mac OS X
Description:
Occurs while building GlassFish on Mac OS X
Cause:
Invalid configuration.
Applies to:
GlassFish, Mac OS X
Description:
Occurs while building GlassFish on Mac OS X
Cause:
Invalid configuration.
JAVA-GlassFish lrm-00118: syntax error at '=' at the end of input
First you need to ensure you are running Tiger (10.4) and have manually installed JDK 1.5 from Apple. Also, even after installing JDK 1.5, the 1.4.2 version bundled with OS X remains the default JDK, you need to modify your .profile to set those environment variables :
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home
export PATH=.:$JAVA_HOME/bin:$PATH
This will ensure that the JDK 1.5 is picked up before the 1.4.2 version. Alternatively, being root you can reset the “CurrentJDK” symlink in /System/Library/Frameworks/JavaVM.framework/Versions to the proper subdirectory, but note that it will reset the default JDK of your Tiger installation to JDK 1.5