Oracle GlassFish Server 3.0.1 Installation Guide

ProcedureTo Uninstall GlassFish Server Software

Before You Begin

Stop all domains and other related processes, including command prompts using the installation directory or its subdirectories, the Update Tool notifier process if present, and any applications using Java SE files.

To stop domains, use the asadmin stop-domain command. For more information about stopping a domain, see To Stop a Domain in Oracle GlassFish Server 3.0.1 Administration Guide.

To stop the Update Tool notifier process, use the updatetool --notifier --shutdown command, executed from as-install-parent/bin. If Update Tool is installed, the notifier is running by default.

If orphaned processes remain, identify and terminate the processes as follows:

Also see Known Issues in Oracle GlassFish Server 3.0.1 Release Notes for known issues related to uninstallation.

  1. Navigate to the directory where GlassFish Server 3.0.1 is installed.

    The default installation directory is as follows:

    • Solaris, Linux, and Mac OS X systems: user's-home-directory/glassfishv3

    • Windows systems: SystemDrive:\glassfishv3

    The default installation directory is referred to as as-install-parent throughout GlassFish Server documentation.

  2. Start the uninstallation program and remove the software.

    • Solaris, Linux, and Mac OS X systems:

      1. If necessary, grant execute permissions to the uninstall file.

        chmod +x ./

      2. At the command prompt, type:


    • Windows systems:

      1. Double-click the uninstall.exe file.

        On Windows you can also start the uninstaller by typing the file name at the command prompt.

      Tip –

      There is a known issue on Windows 7 systems (Issue 12093), whereby uninstallation of GlassFish Server may fail because Windows cannot find the required JDK installation. The problem may occur when the Java binaries are not installed through a standard Java SDK installer.

      The workaround for this issue is to explicitly specify the location of the Java binaries when running the GlassFish Server uninstall utility from the command line. For example:

      uninstall.exe -j "C:\Program Files\Java\jre6"

    Note –

    To uninstall in silent (non-interactive) mode, use the -s option after the file name. For example: ./ -s or uninstall.exe -s

  3. Review the summary page that displays following uninstallation and click Exit to exit the uninstaller.

    Uninstallation information is captured in log files. The names of the files are timestamp -remove.log and timestamp-remove-summary.html. On Solaris, Linux, and Mac OS X systems, these files are generated under the $TMP directory. On Windows systems, these files are generated under the %TEMP% directory.

  4. Examine the contents of the remaining installation directories and remove any files or directories that you do not want.

    Note –

    Not all GlassFish Server directories are automatically removed by the uninstallation program. Remove the remaining contents as desired, including hidden directories prefixed with a dot. It is safe to remove uninstallation and installation log files after you have examined them.