Installation NotesJava 2 SDK, Standard Edition
|
| Locale | Linux platform | |
|---|---|---|
| English | TurboLinux 6.5; kernel 2.2.18; glibc 2.1.x Caldera 3.1; kernel 2.4.2; glibc 2.2.1 Cobalt; kernel 2.3; glibc 2.2.14 SuSE 7.1; kernel 2.4; glibc 2.2 | |
| German | Red Hat Linux 6.2 | |
| Japanese | Red Hat Linux 6.2J Red Hat Linux 6.2J Second Edition Red Hat Linux 7J | |
| Simplified Chinese | Turbo Linux Workstation 6.0 |
Known Problems
Red Hat Linux 6.2 and 7.1 are the officially supported platforms for
J2DK 1.4.0, though limited testing has been performed on other operating
systems. The following are known problems on the non-supported platforms.
rpm --install compat-libstdc++-6.21-2.9.0.0.i386.rpm
It is not necessary to manually install compat-libstdc++-6.21-2.9.0.0.i386.rpm if you are using Red Hat Linux 7 Workstation.
ftp.caldera.com:/pub/updates/eDesktop/2.4/current/RPMSor
ftp.caldera.com:/pub/updates/eServer/2.3/current/RPMS
The Java 2 SDK includes the Java Plug-in and Java Web Start products. See
Installation of Java Plug-in and
Installation of Java Web Start below.
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 RPM packages comprising the SDK, use Installation of RPM File below.
1. Check the download file size.
Check the large file that you downloaded to ensure that it is the
correct size:
j2sdk-1_4_0-linux-i386.bin 40618207 bytesIf the file size doesn't match, it probably means the file was corrupted during download. In that case, try downloading again.
2. Copy j2sdk-1_4_0-linux-i386.bin to the directory into which you want to install the Java 2 SDK.
3. Run j2sdk-1_4_0-linux-i386.bin
Launch the executable file you downloaded, j2sdk-1_4_0-linux-i386.bin, by using the following commands from the directory in which it is located:
chmod a+x j2sdk-1_4_0-linux-i386.binThe script will display a binary license agreement, which you will be asked to agree to before installation can proceed. Once you have agreed to the license, the install script will install the Java 2 SDK in a directory named j2sdk1.4.0 in the current directory../j2sdk-1_4_0-linux-i386.bin
Note about root access -
Unbundling the software automatically creates a
directory called j2sdk1.4.0. Note that if you choose to install
the Java 2 SDK into system-wide location such as /usr/local,
you must first become root to gain the necessary permissions. If you do
not have root access, simply install the Java 2 SDK into your home
directory, or a subdirectory that you have permission to write to.
Note about overwriting files - If you unpack the software in a directory that contains a subdirectory named j2sdk1.4.0, the new software will overwrite files of the same name in that j2sdk1.4.0 directory. Please be careful to rename the old directory if it contains files you would like to keep.
Use these instructions if you want to install Java 2 SDK in the form of RPM packages. If you want to use the self-extracting binary file instead, see Self-Extracting Binary above.
1. Check the download file size.
Check the large file that you downloaded to ensure that it is
the correct size:
j2sdk-1_4_0-linux-i386-rpm.bin 39482030 bytesIf the file size doesn't match, it probably means the file was corrupted during download. In that case, try downloading again.
2. Run j2sdk-1_4_0-linux-i386-rpm.bin and agree to the license it displays.
Launch the executable file you downloaded, j2sdk-1_4_0-linux-i386-rpm.bin, by using the following commands from the directory in which it is located:
chmod a+x j2sdk-1_4_0-linux-i386-rpm.binThe script will display a binary license agreement, which you will be asked to agree to before installation can proceed. Once you have agreed to the license, the install script will create the file j2sdk-1_4_0-linux-i386.rpm in the current directory../j2sdk-1_4_0-linux-i386-rpm.bin
3. Become root by running the su command and entering the super-user password.
4. Uninstall J2SDK 1.4.0 Beta
Note: The default installation location for the RPM package installation of J2SDK 1.4.0 is /usr/java/j2sdk1.4.0. That is the same location in which the pre-releases were installed. To clear the way for installation of the final version , in this step you will uninstall any pre-release versions that may exist on your machine. Skip this step if you have not installed a Java 2 SDK 1.4.0 pre-release.
If you have previously installed the package for a pre-release, remove it. If you are not sure if you have a pre-release version installed, run this command:
rpm -query -a | grep j2sdk-1.4.0The output will show you which pre-release of 1.4.0 is installed, by its RPM package name. Suppose, for example, that the pre-release 1.4.0 Beta 2 is installed. The above command will show the RPM package name for Beta 2: j2sdk-1.4.0-beta2. Once you've determined if a Beta package is installed, you can uninstall as in the following examples:
To remove the Beta package:
rpm -e j2sdk-1.4.0-beta
To remove the Beta 2 package:
rpm -e j2sdk-1.4.0-beta2
To remove the Beta 3 package:
rpm -e j2sdk-1.4.0-beta3
5. Run the rpm command to install the package for the Java 2 SDK v1.4.0:
rpm -iv j2sdk-1_4_0-linux-i386.rpm
This will install the packages comprising the Java 2 SDK.
6. Exit the root shell.
To install the Java Plug-in follow these steps.
1. Uninstall previous installation of the Java Plug-in, if applicable.
rm -fr $HOME/.netscape/java rm $HOME/.netscape/plugins/javaplugin.so rm $HOME/.netscape/plugins/libjavaplugin.so
One or more of these files may not exist on your machine, depending on which previous versions of Java Plug-in you have installed.
2. For Netscape 4.x browsers: Set the NPX_PLUGIN_PATH environment variable to the directory containing the javaplugin.so file. This file is located inside the Java 2 SDK in the jre/plugin/i386/ns4/ directory. This step is not necessary if you use only Netscape 6.x browsers.
3. For Netscape 6.x browsers: Use the regxpcom tool provided by Netscape to register Java Plug-in 1.4.
If you do not add Netscape to your |
If and only if you are using Netscape 6.x browsers, you will need to use regxpcom provided by Netscape to register the libjavaplugin_oji140.so file. In the package installation of J2SDK 1.4.0, copies of this file are located at /usr/j2se/jre/plugin/i386/ns600/libjavaplugin_oji140.so and /usr/j2se/jre/plugin/i386/ns610/libjavaplugin_oji140.so. For example:
cd ${NETSCAPE6}/bin
If you use a Netscape 6.0x browser:
regxpcom ${JRE}/plugin/i386/ns600/libjavaplugin_oji140.so
If you use a Netscape 6.1x browser:
regxpcom ${JRE}/plugin/i386/ns610/libjavaplugin_oji140.so
After running the regxpcom command you should get a message
saying that registration was successful for <jre>/plugin/i386/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/i386/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/i386/ns610/libjavaplugin_oji140.so
regxpcom ${JRE}/plugin/i386/ns610/libjavaplugin_oji141.so
4. For all Netscape browsers: Start your Netscape browser, or restart it if it is already up.
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-linux-int.zip. 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 WebStart product.
|
| ||||||||||||