Monday, February 17, 2020

Installing Java 8 on CentOS 7


Installing Java 8 on CentosOS 7.

Steps:

Step 1: Update

yum -y update

Step 2: Install Java 8


yum install java-1.8.0-openjdk


Step 3:  Verify Java is Installed

java -version


Step 4: Java alternatives (choose Java 1.8..)



update-alternatives --config java

update-alternatives --config javac

update-alternatives --config javaws


Step 5: Environment

vim .bash_profile

Inside on file, copy path your jdk, example:

export JAVA_HOME=/usr/lib/jvm/YOUR_JDK/jre/bin/java


Refresh the File:
Source .bash_profile

echo $JAVA_HOME























No comments:

Post a Comment

Virtual Threads in Java 21: Simplified Concurrency for Modern Applications

  With Java 21, Virtual Threads have redefined how we approach concurrency, offering a lightweight and efficient way to handle parallel and ...