Build fails while using GlassFish

  • Share
  • Share

Applies to:
GlassFish, Mac OS X

Description:
Occurs while building GlassFish on Mac OS X

Cause:
Invalid configuration.

JAVA-GlassFish

  1. admin
    March 20th, 2009 at 10:28 | #1

    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

  1. No trackbacks yet.