[opensuse-factory] The update-alternatives confuser
Right, I had openjdk installed but I had an application that required Sun java which I installed using zypper. Next I tried using update-alternatives, no worky. Read and re-read the manpage which is very wordy but leaves me clueless. I googled and eventually stumbled upon "update-alternatives --all" which offered options that allowed me to select java-1_6_0-sun, but javac was still pointing to openjdk. "zypper in java-1_6_0-sun-devel" and automatically it righted everything. Over the years I've found update-alternatives to be very confusing and I wish the manpage at least had a few useful examples. I think I'll have to find the maintainer and make suggestions as until now I've not had any luck reading the manpage and making SWAGs (Scientific Wild Ass Guesses - Trademark -- Amdahl Corporation). Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On Mon, Jun 06, 2011 at 02:49:44PM +0100, Sid Boyce wrote:
Right, I had openjdk installed but I had an application that required Sun java which I installed using zypper. Next I tried using update-alternatives, no worky. Read and re-read the manpage which is very wordy but leaves me clueless. I googled and eventually stumbled upon "update-alternatives --all" which offered options that allowed me to select java-1_6_0-sun, but javac was still pointing to openjdk. "zypper in java-1_6_0-sun-devel" and automatically it righted everything.
Over the years I've found update-alternatives to be very confusing and I wish the manpage at least had a few useful examples. I think I'll have to find the maintainer and make suggestions as until now I've not had any luck reading the manpage and making SWAGs (Scientific Wild Ass Guesses - Trademark -- Amdahl Corporation).
So the SUN "javac" was not yet installed, making it quite hard for update-alternatives to find ;) Ciao, MArcus -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
On 06/06/11 14:54, Marcus Meissner wrote:
On Mon, Jun 06, 2011 at 02:49:44PM +0100, Sid Boyce wrote:
Right, I had openjdk installed but I had an application that required Sun java which I installed using zypper. Next I tried using update-alternatives, no worky. Read and re-read the manpage which is very wordy but leaves me clueless. I googled and eventually stumbled upon "update-alternatives --all" which offered options that allowed me to select java-1_6_0-sun, but javac was still pointing to openjdk. "zypper in java-1_6_0-sun-devel" and automatically it righted everything.
Over the years I've found update-alternatives to be very confusing and I wish the manpage at least had a few useful examples. I think I'll have to find the maintainer and make suggestions as until now I've not had any luck reading the manpage and making SWAGs (Scientific Wild Ass Guesses - Trademark -- Amdahl Corporation).
So the SUN "javac" was not yet installed, making it quite hard for update-alternatives to find ;)
Ciao, MArcus
That was clearly evident and I knew the -dev package was needed. Making any sense of update-alternatives to get me to that point was the painful part. Lots of words in the manpage, but no clarity. Regards Sid. -- Sid Boyce ... Hamradio License G3VBV, Licensed Private Pilot Emeritus IBM/Amdahl Mainframes and Sun/Fujitsu Servers Tech Support Senior Staff Specialist, Cricket Coach Microsoft Windows Free Zone - Linux used for all Computing Tasks -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
I still don't understand why openSUSE ships a broken, incompatible Java implementation as the default. But anyways, the best way to go about it is remove IcedTea, OpenJDK, etc (any broken Java implementation), then run the package manager again and mark as taboo the packages from the broken Java implementation(s) you just removed, accept this and exit the package manager once again. Now run the package manager once more and install the Sun Java (works 100%). It's time consuming and annoying but you should only have to do this once per system. -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-factory+help@opensuse.org
participants (3)
-
Andrew Joakimsen
-
Marcus Meissner
-
Sid Boyce