java/firefox works but "which java" returns nothing

Michael Hirsch mdhirsch at gmail.com
Mon Jan 4 18:21:36 UTC 2010


On Sat, Dec 26, 2009 at 1:38 AM, Perry <pwhite at bluewin.ch> wrote:
> Le Friday 25 December 2009 22:12:54 Jonas Norlander, vous avez écrit (you
> wrote) :
>> 2009/12/25 Perry <pwhite at bluewin.ch>:
>> > Le Friday 25 December 2009 17:46:00 Jonas Norlander, vous avez écrit (you
>> >
>> > wrote) :
> [snip]
>> >>  I think what you look for is update-java-alternatives
>> >>
>> >> / Jonas
>> >
>> > Thanks for quick answer,
>> > but that is "unknown command". Did you mean
>> > update-alternatives --config java ?
>>
>> No I do have update-java-alternatives (don't know what package it
>> belong to though). This box is Xubuntu 9.10 upgraded from 8.04. Java
>> has for most of the times worked for me, I did have some trouble in
>> 7.xx when I had both SUN and OpenJDK but a "update-java-alternatives"
>> or similar fixed it. You could try to reinstall java for something is
>> obviously not right for you.
>>
>> / Jonas
> Thanks, that helped,
>
> I didn't have "update-java-alternatives", probably because I installed the bin
> from Sun.

$ dpkg-query -S update-java-alternatives
java-common: /usr/share/man/man8/update-java-alternatives.8.gz
java-common: /usr/sbin/update-java-alternatives

So, yes, you don't have it cause you didn't install the java debs.

You might try just installilng the java-common deb to get
update-java-alternatives.

Is there a reason you don't use the deb files from Canonical?  They
work well for me and I like getting updates through apt.

Michael




More information about the kubuntu-users mailing list