Sun GlassFish Enterprise Server v2.1.1 Troubleshooting Guide

Solution 2

The J2SE version can be changed on a per-domain basis by modifying the java-home attribute for the java-config element in the domain’s domain.xml file.

<java-config ...
java-home="path"
...\>