Get Java ready

The new school

grab and install Oracle Java 13

dpkg -i jdk-13.0.2_linux-x64_bin.deb
apt-get -f install
ls -lhF /usr/lib/jvm/jdk-13.0.2/
vi /etc/bash.bashrc

export JAVA_HOME=/usr/lib/jvm/jdk-13.0.2
export PATH=$PATH:$JAVA_HOME/bin

or OpenJDK

...

and check

source /etc/bash.bashrc
echo $JAVA_HOME
echo $PATH
java -version

JNLP

apt install icedtea-netx
#icedtea-plugin

javaws launch.jnlp

The middle ages school

apt install apt-transport-https software-properties-common
add-apt-repository ppa:linuxuprising/java
apt update

#mkdir -p /var/cache/oracle-jdk11-installer-local/
#mv jdk-11.0.4_linux-x64_bin.tar.gz /var/cache/oracle-jdk11-installer-local/
#apt install oracle-java11-installer-local
#apt install oracle-java11-set-default-local

#apt install oracle-java13-installer oracle-java13-set-default
#http://download.oracle.com/otn-pub/java/jdk/13.0.2+8/d4173c853231432d94f001e99d882ca7/jdk-13.0.2_linux-x64_bin.tar.gz

The old school

apt install software-properties-common
add-apt-repository ppa:webupd8team/java
apt update

or

vi /etc/apt/sources.list

deb http://ppa.launchpad.net/webupd8team/java/ubuntu artful main

apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C2518248EEA14886

proceed

apt install oracle-java8-installer oracle-java8-set-default
which java
ls -lF /etc/alternatives/java #/usr/lib/jvm/java-8-oracle/jre/bin/java
java -version

Or w/ OpenJDK

Resources

the old school

http://ppa.launchpad.net/webupd8team/java/ubuntu/dists/

https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-debian-8

https://askubuntu.com/questions/13065/how-do-i-fix-the-gpg-error-no-pubkey

java 8 jdk https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html

java 8 jre https://www.java.com/en/download/ https://www.java.com/en/download/linux_manual.jsp


HOME | GUIDES | BENCHMARKS | html