Sun GlassFish Enterprise Server v2.1.1 Installation Guide

Chapter 2 Uninstalling Sun GlassFish Enterprise Server

This chapter has instructions for uninstalling Enterprise Server file-based installations and for JAR installations. It is important to use the uninstall routine described here. If you attempt another method, problems arise when you try to reinstall the same version or when you install a newer version.

Uninstalling Sun GlassFish Enterprise Server With File-Based Installer

Use this procedure if you have installed the Sun GlassFish Enterprise Server available from http://www.sun.com/downloads using the file-based installer.

Before you run the uninstallation program, stop all clustered instances and node agents, if any, and then stop all domains. If you do not stop all domains before the uninstallation, orphaned processes might exist on your system after the uninstallation. On UNIX® platforms, identify the processes using the ps -ef command and terminate them using the kill command. Stop HADB and any associated ma processes, if you are using HADB.

To uninstall the Enterprise Server software, perform the following steps.

ProcedureTo Run the Uninstallation Program on UNIX

Before You Begin

Make sure that you have stopped all domains and other related processes, command prompts using the installation directory or its subdirectories, and any applications using Java Platform, Standard Edition (Java SE) files bundled with the product.

  1. Navigate to your Enterprise Server installation directory.

  2. Invoke the uninstallation program as follows:

    • To use the uninstallation in GUI mode, type:

      ./uninstall

    • To use the uninstallation in command-line mode, type:

      ./uninstall -console

ProcedureTo Run the Uninstallation Program on Windows

Before You Begin

Make sure that you have stopped all domains and other related processes, and command prompts using the installation directory or its subdirectories, and any applications using Java SE files bundled with the product.

  1. Invoke the Uninstallation program in one of the following ways:

    • Under the Sun Microsystems, Application Server program group in the Start Programs area of your desktop, click Uninstall.

    • Invoke the uninstall program through the Control Panel:

      1. Navigate to the Control Panel.

      2. Choose Add/Remove Programs.

      3. From the list of installed programs, select Sun GlassFish Enterprise Server.

      4. Click Remove.

Next Steps

After uninstallation is complete, carefully examine the installation directory contents and remove the remaining files or directories that you do not require.

Uninstalling Sun GlassFish Enterprise Server with JAR-Based Installer

Use this procedure if you have downloaded the JAR-based installer from https://glassfish.dev.java.net.

Make sure that you have stopped all domains and other related processes, command prompts using the installation directory or its subdirectories, and any applications using Java Platform, Standard Edition (Java SE) files bundled with the product.

To uninstall GlassFish, perform the following steps:

  1. Change to the directory containing the glassfish directory.

  2. On Solaris/UNIX, run the following command: rm —r glassfish. On Windows, in the Explorer window, choose the glassfish directory and delete all its contents.