Oracle GlassFish Server 3.0.1 Release Notes

Path Settings for the JDK Software

The following binary files that are used with GlassFish Server must come from the JDK software, not the Java Runtime Environment (JRE) 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.