Using GAlternatives is fun, tasty

24 June, 2007

![G Alternatives screenshot]( Alternatives_small.png)

If you’ve got a raw Ubuntu box it probably came with gij, the GNU Java runtime interpreter. If you’ve installed Sun’s JDK using sudo apt-get install sun-java5-jdk then you’ll now have Sun’s runtime but gij will still be the default. This is maintained by the alternatives system. You can either go and fix it yourself or you can sudo apt-get install galternatives followed by galternatives to run it (I haven’t noticed it in any menu although of course you can add it yourself).

This gives you a nice GUI onto all of the currently set commands in /etc/alternatives and what they can be set to. If you scroll down the list you’ll need to change the settings for jar and java.

See other posts tagged with java java ubuntu and all posts made in June 2007.


Mathew Peet
27 June, 2007 at 23:39

Ooh Sun Java is proper open sauce now, that should make things easier?

Phil Wilson
28 June, 2007 at 09:40

I guess someone might bundle it in a way that makes this change by default. Just having it installable via apt-get is an amazing step forward.

08 December, 2008 at 21:54

and only 18 months later I discover that galternatives now seems to be bundled with ubuntu!