Setup oracle java 7 on Ubuntu 14.04

I wanted to try oracle jdk vs openjdk performance for the DartEditor

    http://www.oracle.com/technetwork/java/javase/downloads/index.html

I chose

    jdk-7u71-linux-x64.tar.gz

that 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...

Popular posts from this blog

Simple Samba setup on Lubuntu

Soving AccessDenied on Google Cloud Storage domain mapping

Deploying a static website efficiently on Google Cloud Storage