Java: Difference between revisions

From Bitpost wiki
(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...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Installation ===
=== Installation ===
Install Oracle JDK 8 (9 is scheduled for release in 2016)
[http://www.webupd8.org/2015/02/install-oracle-java-9-in-ubuntu-linux.html Install Oracle JDK 9] (considered stable in 3/2018)
  su -
  su -
  add-apt-repository ppa:webupd8team/java
  add-apt-repository ppa:webupd8team/java
  apt-get update
  apt-get update
apt-get install oracle-java9-installer
emacs /etc/environment
  JAVA_HOME="/usr/lib/jvm/java-9-oracle"
There was reorganization of some xml parsers from/to EE, from what I was told, so you might need to stick with Java 8:
  apt-get install oracle-java8-installer
  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

Latest revision as of 20:40, 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"

There was reorganization of some xml parsers from/to EE, from what I was told, so you might need to stick with Java 8:

apt-get install oracle-java8-installer