--- old/src/os/solaris/vm/os_solaris.cpp 2011-02-25 15:52:39.444327300 +0100 +++ new/src/os/solaris/vm/os_solaris.cpp 2011-02-25 15:52:39.026906900 +0100 @@ -2507,7 +2507,7 @@ assert(ret != 0, "cannot locate libjvm"); realpath((char *)dlinfo.dli_fname, buf); - if (strcmp(Arguments::sun_java_launcher(), "gamma") == 0) { + if (Arguments::created_by_gamma_launcher()) { // Support for the gamma launcher. Typical value for buf is // "/jre/lib///libjvm.so". If "/jre/lib/" appears at // the right place in the string, then assume we are installed in a JDK and