Sun GlassFish Enterprise Server v2.1.1 Troubleshooting Guide

Solution 1

To use the new J2SE for all domains, change the AS_JAVA variable in asenv.conf (Solaris/Linux), or asenv.bat (Windows).