java 1.4 설치 32/64 비트 설치
http://java.sun.com/j2se/1.4.2/install.html
솔라리스 설치 방법
Install formats - Java 2 SDK 1.4.2 is available in two installation formats.
- Self-extracting Binary File - This file can be used to install the Java 2 SDK in a location chosen by the user. This one can be installed by anyone (not only root users), and it can be installed in any location. It will not displace the system version of the Java platform suppled by the Solaris Operating System (unless you intentially install it in the same location as the system's Java platform, which requires you to be root user). If you are using this file, see Installation of Self-Extracting Binary below.
- Solaris Packages - A .tar.Z file containing Solaris SUNW* packages to be installed with the pkgadd utility. The SUNW packages require root access to install, and they install by default in a location such that they replace the system version of the Java platform supplied by the Solaris operating system. If you are using this bundle, see Installation of Solaris Packages below.
![]() |
Note: For any text on this page containing the following notation, you must substitute the appropriate Java 2 SDK update version number for the notation.
<version>
For example, if you have downloaded update 1.4.2_01, the following command:
chmod +x j2sdk-1_4_2_<version>-solaris-sparc.sh
would become:
chmod +x j2sdk-1_4_2_01-solaris-sparc.sh
![]() |
Installation of Self-Extracting Binary
Use these instructions if you want to use the self-extracting binary file to install the Java 2 SDK. If you want to install Solaris packages comprising the SDK, use Installation of Solaris Packages below.1. Download and check the file size to ensure that you have downloaded the full, uncorrupted software bundle.
You can download to any directory you choose; it does not have to be the directory where you want to install the Java 2 SDK.2. Make sure that execute permissions are set on the self-extracting binary.Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.
On SPARC processors:
chmod +x j2sdk-1_4_2_<version>-solaris-sparc.shOn x86 processors:
chmod +x j2sdk-1_4_2_<version>-solaris-i586.sh3. Change directory to the location where you would like the files to be installed.
The next step installs the Java 2 SDK into the current directory.4. Run the self-extracting binary.
Execute the downloaded file, prepended by the path to it. For example, if the file is in the current directory, prepend it with "./" (necessary if "." is not in the PATH environment variable):On SPARC processors:
./j2sdk-1_4_2_<version>-solaris-sparc.shOn x86 processors:
./j2sdk-1_4_2_<version>-solaris-i586.shThe binary code license is displayed, and you are prompted to agree to its terms.
The Java 2 SDK files are installed in a directory called j2sdk1.4.2_<version> in the current directory. Follow this link to see its directory structure. The Java 2 SDK documentation is a separate download.
Note about System Preferences: By default, the installation script configures the system such that the backing store for system preferences is created inside the Java 2 SDK's installed directory. If the SDK is installed on a network-mounted drive, it and the system preferences can be exported for sharing with Java runtime environments on other machines. As an alternative, root users can use the -localinstall option when running the installation script, as in this example:
This option causes the system preferences to be stored in the /etc directory from where they can be shared only by VMs running on the local machine. You must be root user for the -localinstall option to work.j2sdk-1_4_2_<version>-solaris-sparc.sh -localinstallSee the Preferences API documentation for more information about preferences in the Java platform.
Installation of Solaris Packages
Use these instructions if you want to use the pkgadd utility to install the Solaris packages for the Java 2 SDK. If you want to use the self-extracting binary file instead, see Installation of Self-extracting Binary above.1. Download and check the file size to ensure that you have downloaded the full, uncorrupted software bundle.
You can download to any directory you choose.Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.
2. Extract the contents of the compressed tar file:
On SPARC processors:
zcat j2sdk-1_4_2_<version>-solaris-sparc.tar.Z | tar -xf -On x86 processors:
zcat j2sdk-1_4_2_<version>-solaris-i586.tar.Z | tar -xf -This creates several directories (SUNWj3dmo, SUNWj3dev, SUNWj3cfg, SUNWj3man, SUNWj3rt, and SUNWj3jmp) in the current directory.
3. Become root by running su and entering the super-user password.
4. Uninstall any 1.3.x or 1.4.x Installation of Java 2 SDK.
Note: The default installation location for the Solaris package installations of previous releases Java 2 SDK 1.3.0, 1.3.1, 1.4.0, and 1.4.1 is /usr/j2se. That is the same location in which 1.4.2 is installed. To clear the way for installation of 1.4.2, in this step you must uninstall any of these previous releases that are installed. Skip this step if none of these previous releases is installed or if you intend to install Java 2 SDK 1.4.2 in a non-default location. For more details, see Selecting the Default Java Platform.
Note About Uninstall Bug: Please note that there is a bug in the uninstall scripts associated with some of the Java 2 SDK packages. See the Bug in Uninstall of Solaris Packages for more information.
If you have previously installed the Solaris packages for Java 2 SDK 1.3.0, 1.3.1, 1.4.0, or 1.4.1, remove them by running:
pkgrm SUNWj3dmo SUNWj3man SUNWj3dev SUNWj3rtIf you have previously installed packages SUNWlj3dv and SUNWlj3rt for localization support in Java 2 SDK 1.3.0, you should also remove them:pkgrm SUNWlj3dv SUNWlj3rtIf you have previously installed the Japanese man page packages for Java 2 SDK 1.3.0 or 1.3.1, remove them also:
pkgrm SUNWjej3m SUNWjpj3m SUNWjuj3m5. Run the pkgadd command to install the packages.
On either x86 or SPARC processors, run:pkgadd -d . SUNWj3rt SUNWj3cfg SUNWj3dev SUNWj3man SUNWj3dmo
This installs the Java 2 SDK 1.4.2 into /usr/j2se; see the pkgadd(1) and admin(4) man pages for information on installing the SDK in a non-default location.
Note About Default Java Platform: To get the version number of the Java platform that is installed, run:
/usr/j2se/bin/java -fullversionJava 2 SDK 1.4.2 will automatically become the default Java platform on Solaris 9 but not necessarily on earlier versions of Solaris. The default Java platform is determined by the /usr/java symbolic link. If the /usr/java symbolic link is not pointing to the /usr/j2se directory (where Java 2 SDK 1.4.2 was just installed), then you may want to update it to point there. For more details, see Selecting the Default Java Platform.
6. For Japanese users: Install man pages.
If you previously installed the man page packages from Java 2 SDK 1.3.0 or 1.3.1, remove them by running:pkgrm SUNWjej3m SUNWjpj3m SUNWjuj3mIf you have version 1.4.0 Japanese man pages installed, you will need to remove them:
pkgrm SUNWj3jmpThen run the pkgadd command to install the new Japanese man page package:
pkgadd -d . SUNWj3jmp7. Delete the tar files and extracted SUNW* directories.
8. Exit the root shell.
64-bit Installation Instructions
Follow this procedure to install support for 64-bit operation of the Java 2 SDK on SPARC processors. You must install the 32-bit Java 2 SDK before proceeding with these instructions.
As with the installation of the 32-bit Java 2 SDK, the 64-bit supplemental support is available in two installation formats; use the same installation format as you used for the installation of the 32-bit Java 2 SDK.
- Self-extracting binary - See the Installation of Self-Extracting Binary below
- Solaris packages - See the Installation of Solaris Packages below
Note: For any text on this page containing the following notation, you must substitute the appropriate Java 2 SDK update version number for the notation.
For example, if you are downloading update 1.4.2_01, the following command:<version>
would become:chmod +x j2sdk-1_4_2_<version>-solaris-sparcv9.sh
chmod +x j2sdk-1_4_2_01-solaris-sparcv9.sh
Installation of Self-Extracting Binary
Follow these instructions to add 64-bit support to the Java 2 SDK which has already been installed using the self-extracting binary. If you want to install Solaris packages comprising the SDK, see Installation of Solaris Packages.1. Download the self-extracting binary and check the download file size.
You can download to any directory you choose; it does not have to be the directory where you want to install the J2SE.Before you download the file, notice its byte size provided on the download page on the web site. Once the download has completed, compare that file size to the size of the downloaded file to make sure they are equal.
2. Make sure that execute permissions are set on the self-extracting binary:
chmod +x j2sdk-1_4_2_<version>-solaris-sparcv9.sh3. Change directory to the same directory from where you ran the self-extracting binary for the 32-bit install.
This is the directory that contains the j2sdk1.4.2_<version> directory of the 32-bit J2SE. The next step installs the J2SE into the current directory.4. Run the self-extracting binary.Execute the downloaded file, prepending the path to it. For example, if the downloaded file is in the current directory, prepend it with "./":./j2sdk-1_4_2_<version>-solaris-sparcv9.sh
The binary code license is displayed, and you are prompted to agree to its terms.
The supplemental files for 64-bit support are installed in directories named sparcv9 at several locations within the same j2sdk1.4.2_<version> directory where the 32-bit J2SE was installed.
![]() |
Installation of Solaris Packages
Use these instructions if you want to use the pkgadd utility to install 64-bit support for the Java 2 SDK.1. Check the download file size
Before you download a file, notice that its byte size is provided on the download page. Once the download has completed, check that you have downloaded the full, uncorrupted software file.2. Extract the contents of the compressed tar file:
zcat j2sdk-1_4_2_<version>-solaris-sparcv9.tar.Z | tar -xf -This will create the SUNWj3dvx, SUNWj3rtx, and SUNWj3dmx packages which contain 64-bit support for the Java 2 SDK.
3. Become root by running su and entering the super-user password.
4. Run the pkgadd command to install the packages.
pkgadd -d . SUNWj3rtx SUNWj3dvx SUNWj3dmxThis will install the files for 64-bit support into the Java 2 SDK 1.4.2_<version> installation at /usr/j2se.
5. Delete the tar files and extracted directories.
6. Exit the root shell.