[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

java alternatives



Hello,

I'm running Fedora 10 and recently installed the Sun Java JDK 6_13 using the alternatives command.
It works fine, including the plugin, but I really don't get the synchronization process as discussed in the manual. If I issue the command 
$ alternatives --display java
I see that there is a list of 'slaves' associated with the group 'java' already present. These slaves are java commands and manpages.
I assume that I should also have included these slaves, but didn't.
So the first question I have is how can you add slaves afterwards?
I tried a number of ways but wasn't able to unless I removed it and reinstalled it.
Also, even though this worked for slaves that were commands, it didn't work for the manpages.
For example,
$ alternatives (etc.) --slaves /usr/share/man/man1/java.1.gz java.1.gz /opt/java/man/man1/java.1 does not work.

I'm not even sure if I understand this correctly, but I can't find any good documentation on the alternative system.

Afterwards there was a message that stated the group was now in manual mode instead of automatic.
Basically my take is that when it's in automatic mode, then if you switch to the other version using the command
$ alternative --config
All the other slaves will switch associated with the group will switch over as well.
Now that it is in manual mode, do I have to switch each slave myself? How?



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]