Re: [opensuse] Change 11.0 from SunJava 1.6 to IBMJava 1.6



On Wednesday 30 July 2008 21:24:07 Ed Harrison wrote:
Sunny wrote:
On Wed, Jul 30, 2008 at 7:56 AM, Ed Harrison
<ed.harrison@xxxxxxxxxxx> wrote:
I have always preferred IBM java to Sun's. When I look in
/usr/lib/jvm, I see all these symlinks within the directory and
also to /etc/alternatives.

How can I make IBM java the default for all these?

Ed

#> /usr/sbin/update-alternatives java

Well, that didn't go very well. I found it easier to go to
/etc/alternatives and manually change jre, java, javaws and
javaplugin.

I did this after doing man update-alternatives, and taking 2 aspirin.
It's fixed, so I want be calling again in the morning.

Thanks for the pointer. I can tell update-alternatives is powerful,
but I found manual changes much easier than trying to understand it
all. I just hope something doesn't automatically change it all back
later.

Ed

Hi,

don't be afraid. The update-alternatives --config switch the symlink
status to the manual (see the output of the
update-alternatives --display java). The default status is auto and
it's driven by priorities - the openjdk6 has a highest one, sun has
lower and IBM the lowest. In the manual state the update-alternatives
will never change the symlink (unless you use --config, --set options).

Some usefull informations about update-alternatives are in
http://en.opensuse.org/Java/setDefaultJava

Regards
Michal Vyskocil
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx



Relevant Pages