Java on Mac OS X has a different layout. There are no arch subdirs in jre/lib. The 'gamma' JVM simplified launcher needs to understand the new layout. Furthermore, the test_gamma generated script should always pass, when run during the build process.
NOTE: Early bugs for the Mac port were filed in Jira. This bug shadows the following bug in Jira...
*** (#1 of 1): [ UNSAVED ] ###@###.###
Several issues were discovered in the gamma launcher and test_gamma script...
1) need to add support for new layout on Mac OS X
2) gamma loads libjava.dylib from JAVA_HOME which links to various Mac frameworks. Symbol resolution in these frameworks inadvertently uses libjpeg.dylib in JAVA_HOME. To resolve, gamma needs to be statically linked with the CoreFoundation framework.
3) test_gamma sets DYLD_LIBRARY_PATH. This disrupts the real java launcher in JAVA_HOME. It should only be set in the environment for gamma runs. Otherwise, libjava.dylib cannot be found.