Java Dynamic Management Kit 4.2 Installation Guide and Release Notes

Installing the Software on a Solaris Platform

These instructions assume that you are already familiar with installing software products on machines running a Solaris operating environment, and that you are installing from a local CD-ROM drive.

The installation process uses the Solaris Web Start WizardsTM software to simplify and speed up the installation of packages on a Solaris platform. The wizard is a Java class that runs in the Java Runtime Environment, versions 1.1.8 to 1.2.2. Make sure that the java command is in your path before running the installer script.

You must have super-user privileges in order to install the Java Dynamic Management Kit on a Solaris platform.

Installing the Product Software
  1. Insert the product CD-ROM into the CD-ROM drive.

    If the Volume Manager (vold) is running on your machine (the default), then the CD-ROM is mounted automatically under /cdrom/jdmk_4_2 when it is loaded in the drive.

    If the Volume Manager (vold) is not running on your machine, create a directory called /cdrom/jdmk_4_2 and mount the CD-ROM manually (you must be root to do this):


    # mkdir -p /cdrom/jdmk_4_2
    # mount -rF hsfs CD-RomDeviceName /cdrom/jdmk_4_2
    

    CD-RomDeviceName is the directory which represents the CD-ROM drive on your machine, for example, /dev/dsk/c0t0d0s0.

  2. There is a separate installer script for each version of the Java Development Kit. Type one of the following commands according to the environment in which you will use the Java Dynamic Management Kit:


    JDK 1.1 $ /cdrom/jdmk_4_2/solaris/11/install.sh
    

    Java 2 $ /cdrom/jdmk_4_2/solaris/12/install.sh
    

    You may perform both installations if you wish, they are placed in distinct directories.

  3. Type the root password for your machine when prompted to do so by the installer:


    Solaris Web Start installer 
    To use this installer you will need to be the system's root user. 
    
    Please enter this system's root user password 
    Password: 

    This will launch the interactive installer window from which you will complete the installation. If you encounter problems while using the installer scripts or running the installation wizard, please see "Alternate Installation Procedure" for a workaround.

  4. Follow the instructions of the installation wizard to lead you through the installation.

    If you choose the Typical installation, all of the product packages will be installed in the default location: /opt.

    If you choose the Custom installation, you can select the packages you want to install and specify a different location. Click the "Browse" button and then choose the path of the new installation directory.

    In every case, the installation wizard will automatically create an uninstallation wizard that can remove the exact configuration that was installed. See "Removing or Reinstalling the Product Software" for details.

  5. Once the installation is finished, you may want to view or copy the documents in the /cdrom/jdmk_4_2/docs directory. These printable documents are not included in the installed packages for space considerations. See "Printable Documents" for a description of the Java Dynamic Management Kit documentation set.

  6. When you are finished, eject the CD-ROM.

    If Volume Manager (vold) is running on your machine, the CD-ROM is unmounted automatically when it is ejected:


    $ eject cdrom
    

    If Volume Manager (vold) is not running on your machine, unmount the CD-ROM manually before you eject it (you must have super-user privileges to run the umount command):


    # umount /cdrom/jdmk_4_2
    # eject cdrom
    # rmdir /cdrom/jdmk_4_2
    

Alternate Installation Procedure

If you cannot launch the installation wizard, you can simply install the software with the Solaris packages in the same directory. Follow this procedure once the CD-ROM is mounted. You must also have super-user privileges to run the pkgadd command.

Installing with pkgadd
  1. As root, type the following command to start pkgadd:


    # /usr/sbin/pkgadd -d /cdrom/jdmk_4_2/solaris/JDKversion
    
  2. Type the numbers corresponding to the packages you want to install.

    To install the full Java Dynamic Management Kit, including the documentation, type all to choose all the available packages. The installation program may prompt you with questions about package dependencies and running installation scripts. Type y to answer yes to all questions and complete the installation normally.

  3. When the installation is finished, type q to stop pkgadd.

    You can then view the documentation or eject the CD as described in Step 5.

Removing or Reinstalling the Product Software

You should remove the existing software packages if you are reinstalling version 4.2 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.2/JDKversion
    # java uninstall_jdmk42_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".