Sun Java Enterprise System 5 Installation Guide for UNIX

uninstall Command

After installation, the Java ES installer places the uninstaller uninstall utility here:

The Java ES uninstall command has the following format:

uninstall [option]...

The following table describes the options for the uninstall command.

Table B–2 Java ES Uninstall Command-line Options




Defines command line options for the uninstaller. 


Prints a state file ID to the screen. 


Runs the uninstaller without removing software. 


Starts the uninstaller in silent mode, suppressing the graphical interface. Use this option with the -state option to run the uninstaller in silent mode.


Starts the uninstaller in text-based mode (does not launch the graphical interface). 

-saveState [statefile ]

Instructs the uninstaller to generate a state file at the location specified by statefile. State files are used when performing a silent uninstallation.

If the specified file does not exist, the command creates it. 

If you omit the statefile value, the uninstaller writes to the default file, statefile.out.

You can specify the same state file in subsequent uninstallation sessions. After the first session, n is appended to the file name, where n is an integer that is incremented for each session, beginning with zero (0).

-state statefile

Uses the specified state file to provide input for silent uninstallation. Use this option with the -noconsole option for starting silent uninstallation.


Prints the build information, including Product Name, Date, Build, Patch Level. Primarily an internal tool, but can be helpful in filing bugs. 


To run the uninstaller in graphical mode from within the uninstaller directory:


To run the uninstaller in text-based mode:

./uninstall -nodisplay

To run the graphical uninstaller without removing software:

./uninstall -no

To create a state file in graphical mode without removing software:

./uninstall -no -saveState myUninstallStatefile

To create an uninstallation state file while uninstalling software in text-based mode:

./uninstall -nodisplay -saveState myUninstallStatefile

To run the uninstaller in silent mode:

./uninstall  -noconsole -state myUninstallStatefile