update-alternatives --config java
wulfmann at tiscali.co.uk
Mon Aug 27 03:41:57 UTC 2007
Karl Auer wrote:
> I have GCJ, Sun/Blackdown 1.4.2-02, Sun 1.6 and Sun 1.6 installed.
> I am still using 1.4 for production work. The --list option does not
> show 1.4, even though I did install it from the Ubuntu repositories:
> kauer at karl:~$ sudo update-java-alternatives --list
> java-1.5.0-sun 53 /usr/lib/jvm/java-1.5.0-sun
> java-6-sun 63 /usr/lib/jvm/java-6-sun
> java-gcj 1041 /usr/lib/jvm/java-gcj
All these are below /usr/lib/jvm. Where is 1.4 installed? I think the
alternatives system only works for those in the "standard" place, which
may have changed since the 1.4 package was built.
> Why is this? It seems to mean that if I ever move away from 1.4, I will
> have no (easy) way back...
> The Ubuntu versions are pretty old too. I am starting to feel that the
> Ubuntu way, at least for real Java development, is not good enough, and
> that I will have to de-install all these Ubuntu packages and install the
> Sun stuff myself the hard way...
> Regards, K.
Any package will be somewhat behind the bleeding edge that you could
have from installing from Sun. It's just the way things work, I think.
Respect the elders. Teach the young. Co-operate with the pack.
Play when you can. Hunt when you must. Rest in between.
Share your affections. Voice your opinion. Leave your Mark.
More information about the ubuntu-users