DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

How to Install JRE and set JAVA_HOME Path in Linux 64 Bit Operating System

June 11, 2016 DbAppWeb Admin
First, download the latest version of JRE rpm from the Oracle website. To download the latest version of JRE Click Here. The process of installing the JRE rpm and setting the JAVA_HOME path is shown here.

Install JRE on 64-bit Linux

  • Download the latest JRE rpm from here, select the 64-bit rpm in my case rpm is jre-8u91-linux-x64.rpm.
    Download JRE from Oracle
  • Login as a root user and install the rpm through the command shown below:
[root@testserver ~]# rpm -ivh jre-8u91-linux-x64.rpm

Install jre rpm in linux 64bit operating system
  • Once rpm is installed successfully then set the path through bash_profile, to set the path open the bash_profile in vi editor, add the paths and save the file.
              [root@testserver jre1.8.0_91]# vi ~/.bash_profile
 
              export JAVA_HOME=/usr/java/jre1.8.0_91/

              PATH=$PATH:/usr/java/jre1.8.0_91/bin:$HOME/bin

Set JAVA_HOME path throgh bash_profile in linux
  • Run the command source~/.bash_profile to take these paths into effect.
[root@testserver jre1.8.0_91]# source ~/.bash_profile
  • Now verify the set paths using the below commands
[root@testserver jre1.8.0_911]# echo $JAVA_HOME
             /usr/java/jre1.8.0_91/
 
             [root@testserver jre1.8.0_91]# echo $PATH
             /usr/java/jre1.8.0_91/bin:/root/bin

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Next Article
Tags:JAVA and JRE Linux Sys Admin

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com