Java_Installation
How do I download and install 32-bit Java for Linux?
This article applies to:
- Platform(s): Oracle Enterprise Linux, Oracle Linux, Red Hat Linux, SLES, SUSE Linux
- Java version(s): 7.0, 8.0
Linux System Requirements
See supported System Configurations for information about supported platforms, operating systems, desktop managers, and browsers.Note: For downloading Java other flavors of Linux see Java for Ubuntu, Java for Fedora
Follow these steps to download and install 32- bit Java for Linux.
Download
- Go to http://java.com and click on the **Download** button
- There are two types of installation packages.
- Java on Linux Platforms
This installs the Java Runtime Environment (JRE) for 32-bit Linux, using an archive binary file (.tar.gz) that can be installed by anyone (not only the root users), in any location that you can write to. However, only the root user can install Java into the system location. - Java on RPM-based Linux Platforms
This installs the Java Runtime Environment (JRE) for 32-bit RPM-based Linux platforms, such as Red Hat and SuSE, using an RPM binary file (.rpm) in the system location. You must be root to perform this installation.
- Java on Linux Platforms
- Before the file can be downloaded, you must accept the license agreement.
- Download and check the download file size to ensure that you have downloaded the full, uncorrupted software bundle. 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.
Install
- [[https://java.com/en/download/help/linux_install.xml#Java for Linux Platforms|Java for Linux Platforms]]
- **Java for RPM based Linux Platforms**
Note about root access: To install Java in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the Java in your home directory or a sub directory for which you have write permissions
Java for Linux Platforms
- Change to the directory in which you want to install. Type:
cd directory_path_name
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/ - Move the .tar.gz archive binary to the current directory.
- Unpack the tarball and install Java
tar zxvf jre-8u73-linux-i586.tar.gz
The Java files are installed in a directory called jre1.8.0_73 in the current directory.
In this example, it is installed in the /usr/java/jre1.8.0_73 directory. - Delete the .tar.gz file if you want to save disk space.
Java for RPM based Linux Platforms
- Become root by running su and entering the super-user password.
- Uninstall any earlier installations of the Java packages.
rpm -e package_name - Change to the directory in which you want to install. Type:
cd directory_path_name
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java - Install the package.
rpm -ivh jre-8u73-linux-i586.rpm
To upgrade a package,
rpm -Uvh jre-8u73-linux-i586.rpm - Exit the root shell. No need to reboot.
- Delete the .rpm file if you want to save disk space.
Enable and Configure
Firefox
When you install the Java platform, the Java plugin file is included as part of that install. If you want to use Java within Firefox, you need to manually create a symbolic link from the plugin file in the release to one of the locations that Firefox expects. For Firefox version 21 and higher, you must create the symbolic link in your home directory, ~/.mozilla/plugins. Beginning with Firefox version 21, creating the symbolic link in the plugins subdirectory of the Firefox application's directory is not supported.To configure the Java Plugin follow these steps:
- Exit Firefox browser if it is already running.
- Uninstall any previous installations of Java Plugin.
Only one Java Plugin can be used at a time. When you want to use a different plugin, or version of a plugin, remove the symbolic links to any other versions and create a fresh symbolic link to the new one.
Remove the symbolic links (or move them to another directory) to javaplugin-oji.so and libnpjp2.so from the Firefox plugins directory. - Create a symbolic link to the Java Plugin in the Firefox plugins directory
- Go to the Firefox plugins directory
cd ~/.mozilla/plugins
Create the plugins directory if it does not exist. - Create the symbolic link
32-bit plugin:
ln -s Java installation directory/lib/i386/libnpjp2.so .
64-bit plugin:
ln -s Java installation directory/lib/amd64/libnpjp2.so .
- If the Java is installed at this directory:
/usr/java/Java installation directory - Then type in the terminal window to go to the browser plug-in directory:cd ~/.mozilla/plugins/
- Enter the following command to create a symbolic link to the Java Plug-in for Firefox:
ln -s /usr/java/Java installation directory/lib/i386/libnpjp2.so .
- Go to the Firefox plugins directory
- Start the Firefox browser, or restart it if it is already up.
In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded. You can also click the Tools menu to confirm that Java Console is there.
No comments:
Post a Comment