Java

From Bitpost wiki
Revision as of 16:17, 13 June 2016 by M (talk | contribs) (Created page with "=== Installation === Install Oracle JDK 8 (9 is scheduled for release in 2016) su - add-apt-repository ppa:webupd8team/java apt-get update apt-get install oracle-java8-ins...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Installation

Install Oracle JDK 8 (9 is scheduled for release in 2016)

su -
add-apt-repository ppa:webupd8team/java
apt-get update
apt-get install oracle-java8-installer
apt-get install oracle-java8-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