Using GAlternatives is fun, tasty
24 June, 2007![G Alternatives screenshot](http://philwilson.org/blog/2007/06/G 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
.
Comments
Mathew Peet
27 June, 2007 at 23:39
Phil Wilson
28 June, 2007 at 09:40
Phil
08 December, 2008 at 21:54
Ooh Sun Java is proper open sauce now, that should make things easier?
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.
and only 18 months later I discover that galternatives now seems to be bundled with ubuntu!