Answers for "linux install java 8"

15

installing java on linux

# install default JDK
sudo apt install default-jdk
# install default JRE
sudo apt install default-jre
# install specific JDK version
sudo apt install openjdk-17-jdk
# install specific JRE version
sudo apt install openjdk-17-jre
Posted by: Guest on April-06-2021
16

install openjdk 8 sdk on ubuntu

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

debian install java

# If you want java 11:
sudo apt install -y default-jre

# If you want other java versions:
sudo apt update
sudo apt install -y apt-transport-https ca-certificates wget dirmngr gnupg software-properties-common
wget -qO - https://adoptopenjdk.jfrog.io/adoptopenjdk/api/gpg/key/public | sudo apt-key add -
sudo add-apt-repository --yes https://adoptopenjdk.jfrog.io/adoptopenjdk/deb/
sudo apt update
sudo apt install -y adoptopenjdk-8-hotspot # Java 8
sudo apt install -y adoptopenjdk-16-hotspot # Java 16

# Switch java version
sudo update-alternatives --config java
Posted by: Guest on September-14-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
2

how to install java 8 and set java_home in ubuntu

sudo apt install openjdk-8-jdk
Posted by: Guest on October-30-2020
0

how to install java 8 on terminal os

brew tap adoptopenjdk/openjdk

brew cask install adoptopenjdk8
brew cask install adoptopenjdk9
brew cask install adoptopenjdk10
brew cask install adoptopenjdk11

brew cask install java8
Posted by: Guest on June-26-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language