Sun GlassFish Enterprise Server v3 Installation Guide

Chapter 2 Uninstalling Sun GlassFish Enterprise Server v3

This chapter describes how to uninstall Sun GlassFish Enterprise Server v3 and remove its components.

Removing an Enterprise Server Installation

This section describes how to remove Enterprise Server software that was installed using the self-extracting file. During installation, a script for uninstalling Enterprise 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 Enterprise 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 Enterprise 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 Sun GlassFish Enterprise Server v3 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 Sun GlassFish Enterprise Server v3 Release Notes for known issues related to uninstallation.

  1. Navigate to the directory where Enterprise Server v3 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

  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.

    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 Enterprise 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.