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