Sun GlassFish Enterprise Server v2.1.1 Release Notes

ProcedureTo Switch to the Supported Java SE Version

You can switch to a supported Java SE version by editing the asenv file as described here.

  1. If you have not already done so, install the new Java SE version on your system.

    The Java SE SDK can be downloaded from http://java.sun.com/javase

  2. Stop the Enterprise Server.

    • From the command line:

      install_dir/bin/asadmin stop-domain

    • From the Administration Console:

      1. Click the Application Server node.

      2. Click Stop Instance.

  3. Edit the install_dir/config/asenv.conf file (asenv.bat on Windows), changing the value for AS_JAVA to point to the new Java home directory:

  4. Edit the as-install/samples/common.properties file, changing the line beginning com.sun.aas.javaRoot... to reference the new Java home directory.

  5. Restart the Application Server.

    • From the command line:

      as-install/bin/asadmin start-domain

    • From the Administration Console:

      1. Click the Application Server node.

      2. Click Start Instance.