Drop OpenJDK and upgrade Java to the Oracle packages

A few weeks back I started noticing some performance issues on my IDE and decided to investigate a bit more on it: turns out that they recommended to 1) upgrade to the latest JDK (7) and stop using OpenJDK, as it has some performance gotchas.

Turns out to be a no-brainer thanks to the apt repository manager provided by flexiondotorg:

1
2
3
4
cd ~/
wget https://github.com/flexiondotorg/oab-java6/raw/0.3.0/oab-java.sh -O oab-java.sh
chmod +x oab-java.sh
sudo ./oab-java.sh

After running it you just need to re-install all the packages:

1
sudo apt-get install oracle-java7-jdk oracle-java7-jre oracle-java7-plugin

and tell ubuntu that the JDK version and location has changed:

1
sudo update-alternatives --config java

A quick check with java -version and then enjoy it!


Hi there! I recently wrote an ebook on web application security, currently sold on leanpub, the Amazon Kindle store and gumroad.

It contains 160+ pages of content dedicated to securing web applications and improving your security awareness when building web apps, with chapters ranging from explaining how to secure HTTP cookies with the right flags to understanding why it is important to consider joining a bug bounty program.

Feel free to skim through some of the free chapters published on this blog and, if the content seems interesting enough to you, grab a copy on leanpub, the Amazon Kindle store, gumroad or simply checkout right down below!

Buy the Web Application Security ebook for $9.99

In the mood for some more reading?

...or check the archives.