Java: Difference between revisions
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
add-apt-repository ppa:webupd8team/java | add-apt-repository ppa:webupd8team/java | ||
apt-get update | apt-get update | ||
apt-get install oracle- | apt-get install oracle-java9-installer | ||
apt-get install oracle- | emacs /etc/environment | ||
JAVA_HOME="/usr/lib/jvm/java-9-oracle" | |||
# needed? apt-get install oracle-java9-set-default | |||
ctrl-D (back to user) | ctrl-D (back to user) | ||
update-alternatives --config java # make note of path | update-alternatives --config java # make note of path |
Revision as of 18:49, 28 March 2018
Installation
Install Oracle JDK 9 (considered stable in 3/2018)
su - add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java9-installer emacs /etc/environment JAVA_HOME="/usr/lib/jvm/java-9-oracle"
# needed? apt-get install oracle-java9-set-default ctrl-D (back to user) update-alternatives --config java # make note of path update-alternatives --config javac # make note of path sudo subl /etc/environment JAVA_HOME="/usr/lib/jvm/java-8-oracle/jre/bin/java" # actually, use the path from above, of course