Jei forume lankaisi pirmą kartą, kviečiame registruotis ir prisijungti prie diskusijų.
PrisijungtiRegistruotisJei forume lankaisi pirmą kartą, kviečiame registruotis ir prisijungti prie diskusijų.
sudo apt-get update
java -version
sudo apt-get install default-jre -y
sudo apt-get install default-jdk -y
sudo apt-get install openjdk-7-jre
sudo apt-get install openjdk-8-jre
sudo apt-get install openjdk-9-jre
sudo apt-get install openjdk-7-jdk
sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-9-jdk
sudo apt-get install python-software-properties -y
apt-get install software-properties-common -y
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java6-installer -y
sudo apt-get install oracle-java7-installer -y
sudo apt-get install oracle-java8-installer -y
sudo apt-get install oracle-java8-installer
sudo update-alternatives --config java
There are 4 choices for the alternative java (providing /usr/bin/java).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1074 auto mode
1 /usr/lib/jvm/java-6-oracle/jre/bin/java 1072 manual mode
2 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode
3 /usr/lib/jvm/java-7-oracle/jre/bin/java 1073 manual mode
4 /usr/lib/jvm/java-8-oracle/jre/bin/java 1074 manual mode
Press enter to keep the current choice[*], or type selection number: