Answers for "how to setup javac 1.8 environment in ubuntu"

16

java 8 install ubuntu

sudo apt-get install openjdk-8-jdk
Posted by: Guest on March-28-2020
8

how to install java 8 and set java_home in ubuntu

#Update repo
sudo apt update

# Install java 8 from ubuntu repo
sudo apt install openjdk-8-jdk -y

#Set JAVA_HOME Path
ls /usr/lib/jvm/java-8-openjdk-amd64/
 export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
 echo $JAVA_HOME
 
 #Add JAVA bin directory to the PATH variable
 export PATH=$PATH:$JAVA_HOME/bin
 echo $PATH
 java -version
Posted by: Guest on September-07-2020

Code answers related to "how to setup javac 1.8 environment in ubuntu"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language