Java Dynamic Management Kit 4.1 Installation Guide and Release Notes

Removing or Reinstalling the Product Software

You should remove the existing software packages if you are reinstalling version 4.1 of the Java Dynamic Management Kit. If you installed the packages with the installation wizard, there is a Java class file which you can launch to lead you through the uninstallation procedure.

The uninstallation wizard can only remove packages added during the previous installation. If packages remain after running the uninstallation wizard, follow the procedure in "Uninstalling with pkgrm".


Note -

You must have super-user privileges to remove Solaris packages, so you must be root when launching the uninstallation wizard.


Running the Uninstallation Wizard
  1. Go to the location of the installed software and launch the uninstallation wizard class:


    # cd installDir/SUNWjdmk/jdmk4.1/JDKversion
    # java uninstall_jdmk41_solaris_JDKversion
    

    You may need to add the current directory (.) to your classpath in order to run the wizard class.

  2. Choose the type of uninstallation you wish to perform and follow the instructions.

    A Full uninstall will remove all of the Java Dynamic Management Kit packages that were installed.

    A Partial uninstall will let you choose the packages you wish to remove. You may launch this wizard again to remove the other packages at a later date.

  3. Click the "Details" button on the last screen of the wizard to make sure the uninstallation is complete. When you are done, exit the wizard.

    Upon exiting, the working directory will have been deleted by the uninstallation process. You will have to change to an absolute directory name. For example:


    # cd installDir
    

If you installed the product packages directly with the pkgadd command, you will have to remove them with the pkgrm command.

Uninstalling with pkgrm
  1. To find out which Java Dynamic Management Kit packages are installed on your machine, type the following command, where x is the major Java version number, either 1 or 2:


    $ /bin/pkginfo | grep xjd
    application SUNWxjddc      Java DMK online documentation
    application SUNWxjdex      Java DMK examples
    application SUNWxjdrt      Java DMK runtime
    application SUNWxjdtk      Java DMK tools
  2. You must have super-user privileges to remove software packages. Call the pkgrm command with the name of the installed packages to remove them. For example, if you have a full installation of the Java Dynamic Management Kit, enter the following command, where x is either 1 or 2:


    #	/usr/sbin/pkgrm SUNWxjdtk SUNWxjdrt SUNWxjdex SUNWxjddc
    

If you are reinstalling the Java Dynamic Management Kit software, you can now follow the steps in "Installing the Product Software".