Sun GlassFish Web Space Server 10.0 Administration Guide

ProcedureTo Reset the JAVA_HOME Variable to the User Directory

  1. Type the following commands in a terminal window:

    export JAVA_HOME JDK-install-dir
    export PATH=$JAVA_HOME/bin:$PATH
  2. To verify the change, type the following command:

    echo $JAVA_HOME

    The new directory should be listed.