Tales about Aviation, Coaching, Farming, Software Development

Sun Java VM on Ubuntu Linux

The newly released Ubuntu 6.06 Dapper includes support for Sun's JVM. It is available in the multiverse repository. In order to access multiverse one has to add these two lines to /etc/apt/sources.list:

deb http://pa.archive.ubuntu.com/ubuntu/ dapper multiverse
deb-src http://pa.archive.ubuntu.com/ubuntu/ dapper multiverse

After sudo apt-get update one can install the Sun Java5 JDK

sudo apt-get install sun-java5-jdk

That was quite easy and painless. It definitely makes deployment of new servers easier than before.

But unfortunately when you try to install Java applications from the Ubuntu repository you will get the GNU JVM and a bunch of GNU provided jar libraries added to your system. At least for my taste I'd like to stick with Sun's JVM for production use for a while. Usually I install Tomcat manually in /opt

This article has been posted to social media sites. There might be comments. Just follow the links: