Sun GlassFish Enterprise Server v3 Release Notes

Path Settings for the JDK Software

The following binary files that are used with Enterprise Server must come from the JDK software, not the Java Runtime Environment (JRETM) software:

To meet this requirement, ensure that the bin directory of the JDK software precedes the bin directory of the JRE software in your path.