Sun GlassFish Enterprise Server 2.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).