Setup oracle java 7 on Ubuntu 14.04
I wanted to try oracle jdk vs openjdk performance for the DartEditor
Then comes the configuration:
At first, Oracle looks slightly slower in a simple test where I started exited the editor with a complex project. However the overall experience looks slightly faster...to be completed after some days of usage...
http://www.oracle.com/technetwork/java/javase/downloads/index.htmlI chose
jdk-7u71-linux-x64.tar.gzthat I extracted to
/opt/apps/jdk1.7.0_71
Then comes the configuration:
# One time setup
# local var
$ LOCAL_JAVA_TOP=/opt/apps/jdk1.7.0_71
# setup
sudo update-alternatives --install /usr/bin/java java $LOCAL_JAVA_TOP/bin/java 110
sudo update-alternatives --install /usr/bin/javac javac $LOCAL_JAVA_TOP/bin/javac 110
Then to change configuration:# To change configuration between openjdk / oracle
sudo update-alternatives --config java
sudo update-alternatives --config javac
At first, Oracle looks slightly slower in a simple test where I started exited the editor with a complex project. However the overall experience looks slightly faster...to be completed after some days of usage...