Oracle GlassFish Server 3.0.1 Installation Guide

Chapter 2 Uninstalling Oracle GlassFishTM Server 3.0.1

This chapter describes how to uninstall Oracle GlassFish Server 3.0.1 and remove its components.

Removing an GlassFish Server Installation

This section describes how to remove GlassFish Server software that was installed using the self-extracting file. During installation, a script for uninstalling GlassFish Server is placed in the installation directory. This section provides instructions for removing the software using this script. If you attempt to remove the software using another method, problems are likely to arise when you try to reinstall the same version of GlassFish Server or when you install a new version.


Note –

To uninstall a ZIP installation, manually remove the contents of the installation directory after making sure that there are no files that you want to keep.


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 ./uninstall.sh

      2. At the command prompt, type:

        ./uninstall.sh

    • 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: ./uninstall.sh -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.