原文地址:http://java.sun.com/j2se/1.5.0/install.html
有点注意事项,安装时需指定 -localinstall 参数。
---------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Print-friendly Version |
function MM_openBrWindow(url, pgname, props)
Unknown macro: { window.open(url, pgname, props); return true; }
|
System Requirements JDK Installation Instructions Installation of Self-Extracting Binary Installation of RPM File Java Plug-in Browser Registration Instructions Java Web Start Installation Notes Troubleshooting
JDK 5.0 is supported on i586 Intel and 100% compatible platforms running Linux. For supported versions of Linux and desktop managers, along with disk and RAM requirements, see System Configurations. For issues, see the Troubleshootingsection below and the Linux Notes section of the Release Notes.
Installing the JDK automatically installs the Java Plug-in and Java Web Start. Note that the Java Plug-in needs to be registered with the browser. After installing the JDK, refer to:
Choose the install format that is most suitable to your needs.| | Note: For any text on this page containing the following notation, you must substitute the appropriate JDK update version number for the notation.
Use these instructions if you want to use the self-extracting binary file to install the JDK. If you want to install RPM packages instead, see Installation of RPM File. 1.Download and check the download file sizeto 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 JDK. 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.Run this command: chmod +x jdk-1_5_0_
The binary code license is displayed, and you are prompted to agree to its terms.
The JDK files are installed in a directory called jdk1.5.0_
Note about System Preferences: By default, the installation script configures the system such that the backing store for system preferences is created inside the JDK's installation directory. If the JDK 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: jdk-1_5_0_
Use these instructions if you want to install JDK in the form of RPM packages. If you want to use the self-extracting binary file instead, see Installation of Self-Extracting Binary.
1.{*}Download and check the file size.*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.Become root by running the su command and entering the super-user password.
3.Extract and install the contents of the downloaded file.Change directory to where the downloaded file is located and run these commands to first set the executable permissions and then run the binary to extract and run the RPM file:
chmod a+x jdk-1_5_0_
./jdk-1_5_0_
The script displays a binary license agreement, which you are asked to agree to before installation can proceed. Once you have agreed to the license, the install script creates and runs the file jdk-1_5_0_
NOTE - If instead you want to only extract the RPM file but not install it, you can run the .bin file with the -x argument. You do not need to be root to do this. 4.Delete the bin and rpm fileif you want to save disk space.
5.Exit the root shell.
You must register the Java Plug-in product with Netscape or Mozilla for the Plug-in to work. Click on the following link to see the instructions for manual registration. Note that for SuSE the 8.1 or higher version of Mozilla must be used, and for non-SuSE Linux, the version of Mozilla must be 1.1 or higher. Please follow these instructions: Manual Registration Instructions
Also see documentation on the Java Plug-in component.| |
This JDK release includes Java Web Start; it is installed automatically with the JDK. But note the following:
To print on Linux, the /usr/sbin/lpc utility must be installed. This is a standard Linux utility. On RedHat 7.1, for example, this utility is in the "LPRng-3.7.4-22 RPM" package.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Print-friendly Version |
JDK 5.0 is supported on Linux platforms running on 64-bit AMD processors. For supported versions of Linux and desktop managers, along with disk and RAM requirements, see System Configurations.
This procedure installs the JDK, but not the Java Plug-in or Java Web Start (which are not yet available for 64-bit Linux), or the public Java 2 Runtime Environment. For each processor, the JDK for Linux 64-bit comes bundled in two install formats, whose filenames are given here:
To install, download these files and otherwise follow the 32-bit Linux installation.
When running the rpm command, the warning "user java_re does not exist - using root" may be displayed. You can ignore this warning, which is due to a bug in the installation package.