Ubuntu < 10.10
To install the Sun Java Virtual Machine (JVM) e.g. on Ubuntu Linux 9.10 (karmic):
Open /etc/apt/sources.list
, put
deb http://archive.ubuntu.com/ubuntu/ karmic multiverse
deb-src http://archive.ubuntu.com/ubuntu/ karmic multiverse
Ubuntu 10.10 (maverick)
This possibly works for versions below 10.10. If it does, please update this note.
sudo add-apt-repository ppa:sun-java-community-team/sun-java6
Ubuntu 11.04 (Natty Narwhal)
- In your Applications menu, open the Ubuntu Software Center.
- Edit -> Software Sources -> Other Software
- Check Canonical Partners and Canonical Partners Source Code
Installing
You probably want to get rid of OpenJDK (which is installed by default and leads to bad RubyMine performance):
sudo apt-get remove openjdk*
Now you can install the official Java JRE:
sudo apt-get update
sudo apt-get install sun-java6-jre
You can now check your default JVM with java -version
. It should be Sun’s.