For issues, see the Troubleshooting section below and the Linux Notes section of the Release Notes.
rpm.bin
file containing RPM packages, installed with the rpm
utility. Requires root access to install. To use this bundle, see Installation of RPM File below.Note: For any text on this page containing the following notation, you must substitute the appropriate JDK update version number for the notation.
<version>
For example, if you are downloading update 1.5.0_01, the following command:
./jdk-1_5_0_<version>-linux-i586.bin
would become:
./jdk-1_5_0_01-linux-i586.bin
Installation of Self-Extracting Binary
Installation of RPM FileYou 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.
Run this command:
chmod +x jdk-1_5_0_<version>-linux-i586.bin
The next step installs the JDK into the current directory.
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):
./jdk-1_5_0_<version>-linux-i586.bin
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_<version>
in the current directory. Follow this link to see its directory structure. The JDK documentation is a separate download.
Note about Root Access: Unbundling the software automatically creates a directory called jdk1.5.0_<version>
. Note that if you choose to install the JDK 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 JDK 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 jdk1.5.0_<version>
, the new software overwrites files of the same name in that jdk1.5.0_<version>
directory. Please be careful to rename the old directory if it contains files you would like to keep.
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_<version>-linux-i586.bin -localinstall
This option causes the system preferences to be stored in the /etc
directory from which they can be shared only by VMs running on the local machine. You must be root user for the -localinstall
option to work.
See the Preferences API documentation for more information about preferences in the Java platform.
Installation of RPM File
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.
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.
su
command and entering the super-user password.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_<version>-linux-i586-rpm.bin ./jdk-1_5_0_<version>-linux-i586-rpm.bin
Note that the initial " ./
" is required if you do not have " .
" in your PATH environment variable.
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_<version>-linux-i586.rpm
in the current directory.
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.
bin
and rpm
file if you want to save disk space.Java Plug-in Browser Registration Instructions
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:
Also see documentation on the Java Plug-in component.
Java Web Start Installation Notes
This JDK release includes Java Web Start; it is installed automatically with the JDK. But note the following:
jnlp
; MIME Type is application/x-java-jnlp-file
. It should be handled by the javaws
executable file in your Java Web Start directory. Also note that, due to a problem with the JavaScript in Netscape 6.x/7.x, you must use the non-JavaScript version of the demos page/usr/sbin/lpc
utility must be installed. This is a standard Linux utility. On Red Hat 7.1, for example, this utility is in the "LPRng-3.7.4-22 RPM" package.
Oracle is reviewing the Sun product roadmap and will provide guidance to customers in accordance with Oracle's standard product communication policies. Any resulting features and timing of release of such features as determined by Oracle's review of roadmaps, are at the sole discretion of Oracle. All product roadmap information, whether communicated by Sun Microsystems or by Oracle, does not represent a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. It is intended for information purposes only, and may not be incorporated into any contract.