Installation NotesJava 2 SDK, Standard Edition
|
J2SDK 1.4.0 will not automatically become the default Java platform. To make J2SDK 1.4.0 the default Java platform, see the note on Selecting the Default Java Platform at the end of this file.
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 Packages below.
1.
Check the download file size
to ensure that you have downloaded the full,
uncorrupted software bundle:
j2sdk-1_4_0-solsparc.sh 41710442 bytes j2sdk-1_4_0-solx86.sh 39508863 bytes
2. Make sure that execute permissions are set on the self-extracting binary:
On SPARC processors:
chmod +x j2sdk-1_4_0-solsparc.sh
On x86 processors:
chmod +x j2sdk-1_4_0-solx86.sh
3. Change directory to the location where you would like the files to be installed.
4. Run the self-extracting binary.
Launch the self-extracting binary file. The binary code license will be displayed, and you will be prompted to agree to its terms. The Java 2 SDK files will be installed in a directory called j2sdk1.4.0.
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 Self-extracting Binary above.
Please note that there is a bug in the uninstall scripts associated with some of the Java 2 SDK packages.
1.
Check the download file size
to ensure that you have downloaded the full,
uncorrupted software bundle:
j2sdk-1_4_0-solsparc.tar.Z 58339880 bytes j2sdk-1_4_0-solx86.tar.Z 55519449 bytes
2. Extract the contents of the compressed tar file:
On SPARC processors:
zcat j2sdk-1_4_0-solsparc.tar.Z | tar -xf -
On x86 processors:
zcat j2sdk-1_4_0-solx86.tar.Z | tar -xf -
This will create several packages (SUNWj3dmo, SUNWj3dev, SUNWj3man, SUNWj3rt, plus SUNWj3jmp containing Japanese man pages) along with the product license, README, and other release documentation.
3. Become root by running su and entering the super-user password.
4. Uninstall Previous Installation of J2SDK
Note: The default installation location for J2SE 1.3.0, J2SE 1.3.1, and the previous J2SE 1.4.0 Beta releases is /usr/j2se. That is the same location in which J2SE 1.4.0 Release Candidate is installed. To clear the way for installation J2SE 1.4.0 Release Candidate, in this step you will uninstall any of these previous releases that you may have installed. Skip this step if you have not installed any of these previous releases or if you intend to install J2SE 1.4.0 in a non-default location.
If you have previously installed the packages for J2SE 1.3.0, J2SE 1.3.1, or a J2SE 1.4.0 Beta release, remove them.
pkgrm SUNWj3dmo SUNWj3man SUNWj3dev SUNWj3rt
If you have previously installed packages SUNWlj3dv and SUNWlj3rt for localization support in J2SE 1.3.0, you should also remove them:
pkgrm SUNWlj3dv SUNWlj3rt
If you have previously installed the Japanese man page packages for J2SDK 1.3.0 or 1.3.1, remove them also:
pkgrm SUNWjej3m SUNWjpj3m SUNWjuj3m
If your /usr/java symbolic link was pointing to the J2SDK 1.2.2 installation at /usr/java1.2, you may want to update it to point /usr/j2se where J2SDK 1.4.0 will be installed.
5. Run the pkgadd command to install the packages.
On either x86 or SPARC processors:
pkgadd -d . SUNWj3rt SUNWj3dev SUNWj3man SUNWj3dmo
This will install the J2SDK 1.4.0 into /usr/j2se; see the pkgadd(1) and admin(4) man pages for information on installing the SDK in a non-default location.
6. For Japanese users
If you previously installed the man page packages from J2SDK 1.3.0 or 1.3.1, remove them.
pkgrm SUNWjej3m SUNWjpj3m SUNWjuj3mThen run the pkgadd command to install the new Japanese man page package:
pkgadd -d . SUNWj3jmp
7. Delete the tar files and extracted directories.
8. Exit the root shell.
http://java.sun.com/j2se/1.4/docs/guide/plugin/index.html
1. For Netscape 4.x browsers: Set the NPX_PLUGIN_PATH environment variable to the directory containing the javaplugin.so file. (This step is not necessary if you use only Netscape 6.x browsers.)
On the SPARC operating environment, the default location of javaplugin140.so for the package installation is in this directory: /usr/j2se/jre/plugin/sparc/ns4/
On Intel platforms, the default location is this directory: /usr/j2se/jre/plugin/i386/ns4/
|
1. The location of the Plug-in ( 2. Setting |
2. For Netscape 6 browsers: Use regxpcom tool provided by Netscape to register Java Plug-in 1.4.
|
Notes:
If you do not add Netscape to your |
If and only if you are using Netscape 6, you will need to use regxpcom
provided by Netscape to register the libjavaplugin_oji140.so file.
In the package installation of 1.4.0, copies of this file are located at /usr/j2se/jre/plugin/<arch>/ns600/libjavaplugin_oji140.so
and /usr/j2se/jre/plugin/<arch>/ns610/libjavaplugin_oji140.so,
where <arch> is either sparc or i386, depending
on your platform. For example:
cd ${NETSCAPE6}/bin
If you use a Netscape 6.0x browser:
regxpcom ${JRE}/plugin/sparc/ns600/libjavaplugin_oji140.so
If you use a Netscape 6.1x browser:
regxpcom ${JRE}/plugin/sparc/ns610/libjavaplugin_oji140.so
After running the regxpcom command you should get a message
saying that registration was successful for <jre>/plugin/sparc/ns610/libjavaplugin_oji140.so
If regxpcom does not register the Java Plug-in successfullyi.e.,
you get a registration-failed message or a core dumptry creating a link
to the Java
Plug-in libjavaplugin.so file in the Netscape 6 plugins
directory.
cd <Netscape 6>/plugins
ln -s <JRE>/plugin/sparc/ns610/libjavaplugin_oji140.so .
Be sure to include the period at the end.
Note: Only one Java Plug-in can be registered at a time. When you want to use a different version, unregister the one you have and register the new version.
regxpcom -u <absolute path to Java Plug-in libjavaplugin.so file>
Example:
regxpcom -u ${JRE}/plugin/sparc/ns610/libjavaplugin_oji140.so
regxpcom ${JRE}/plugin/sparc/ns610/libjavaplugin_oji141.so
3. For Netscape 4.x browsers, restart your browser twice. For Netscape 6.x browsers, start up your browser.
In Netscape do Help -> About Plug-ins to confirm that the Java Plug-in is loaded.
J2SDK 1.4.0 includes the Java Web Start product. Inside the J2SDK's jre directory you will find a ZIP file named javaws-1_0_1_02-solsparc-int.zip on SPARC platforms and javaws-1_0_1_02-solx86-int.zip on Intel platforms. Move this file to a location where you want to install the Java Web Start product (preferably outside the Java 2 SDK installation). Unzip the file. One of the files extracted will be install.sh. Run this script to install the Java Web Start product.
jre/lib/sparc/client/libjvm.so (on SPARC platforms)
jre/lib/i386/client/libjvm.so (on x86 platforms)
jre/lib/sparc/server/libjvm.so (on SPARC)
jre/lib/i386/server/libjvm.so (on x86)
Prior to the Solaris 8 release, the /usr/java symbolic link pointed to /usr/java1.1 if both JDK 1.1 and J2SDK 1.2.2 were installed, making JDK 1.1 the default Java platform. Starting with the Solaris 8 release, the /usr/java symbolic link points to /usr/java1.2 by default if both JDK 1.1 and J2SDK 1.2.2 are installed, making J2SDK 1.2.2 the default Java platform.
Because there are symbolic links in /usr/bin (also known as /bin) that use /usr/java (for example, /usr/bin/java refers to /usr/java/bin/java), this /usr/java link can change the default Java installation seen by most users. Many Java applications run on any of J2SDK 1.4.0, J2SDK 1.3.1, J2SDK 1.2.2, or JDK 1.1, but users and applications might want to be selective about which Java installation they use.
If you want to use JDK 1.1, /usr/java1.1/bin should be on your PATH before /usr/bin. If you want to use J2SDK 1.4.0, /usr/j2se/bin should be on your PATH before /usr/bin.
It is possible for root users to make J2SDK 1.4.0 the default Java platform by modifying the /usr/java symbolic link to point to /usr/j2se. However, changing the symbolic link in this manner may cause problems for some Java applications that are expecting to use earlier versions of the Java platform. See the online compatibility documentation for information about incompatibilities between J2SDK 1.4.0 and earlier releases.
http://java.sun.com/j2se/1.4/compatibility.html
|
| ||||||||||||