Frissen felraktam minden általam használt PC-re egy (K)Ubuntu-t, sőt még Laci kolegámat is megfertőztem vele. Persze mivel a cégnél főleg java fejlesztés megy, egyből jött a kihiívás. Java Development telepítése. Meglepően könnyű módszert találtam rá, amit meg szeretnék itt osztani másokkal is:

On Debian/Ubuntu Linux for example all you need to do is make sure that your apt-get is pointed at the right place. In your /etc/apt/sources.list add in the following (and make sure you are okay with adding in stuff that is not in the default environment).

deb dapper main restricted
deb dapper universe multiverse

After this have apt updates its repository

sudo apt-get update

And finally, just tell it to install java :)

sudo apt-get install sun-java5-jdk

if you want to use Sun’s Java instead of the open source GIJ (GNU Java bytecode interpreter) you need to set it as default. Run:

sudo update-alternatives –config java

After this the rest of the process will display a dialog that will require you to accept the license agreement. When you do, the rest of the setup will happen on its own.

When you’re on the command prompt type

javac -version


java -version

You should be good to go! Finally we have an easy way to install Java on the various Linux variants without having to fight with fakeroot and the other foolishness. Took Sun a criminally long time to do this, but I certainly thank them for it.