On Fri, Apr 17, 2009 at 10:59 AM, Deepak Bhole <span dir="ltr"><<a href="mailto:dbhole@redhat.com">dbhole@redhat.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
* anonymous <<a href="mailto:bitskrieg@gmail.com">bitskrieg@gmail.com</a>> [2009-04-16 16:36]:<br>
<div class="im">> Hello,<br>
><br>
> I'm running Fedora 10 and recently installed the Sun Java JDK 6_13 using the<br>
> alternatives command.<br>
> It works fine, including the plugin, but I really don't get the synchronization<br>
> process as discussed in the manual. If I issue the command<br>
> $ alternatives --display java<br>
> I see that there is a list of 'slaves' associated with the group 'java' already<br>
> present. These slaves are java commands and manpages.<br>
> I assume that I should also have included these slaves, but didn't.<br>
> So the first question I have is how can you add slaves afterwards?<br>
> I tried a number of ways but wasn't able to unless I removed it and reinstalled<br>
> it.<br>
> Also, even though this worked for slaves that were commands, it didn't work for<br>
> the manpages.<br>
> For example,<br>
> $ alternatives (etc.) --slaves /usr/share/man/man1/java.1.gz java.1.gz /opt/<br>
> java/man/man1/java.1 does not work.<br>
><br>
<br>
</div>You won't be able to add slaves afterwards. They can only be done when<br>
the alternative is installed. As for adding them for the Sun JRE/JDK,<br>
the easiest way is to see what the openjdk rpm does and replace the<br>
paths with where you install the Sun VM. To see what the openjdk rpms<br>
do, you can run 'rpm -q --scripts java-1.6.0-openjdk{,-devel,-plugin}'<br>
<div class="im"><br>
> I'm not even sure if I understand this correctly, but I can't find any good<br>
> documentation on the alternative system.<br>
><br>
> Afterwards there was a message that stated the group was now in manual mode<br>
> instead of automatic.<br>
> Basically my take is that when it's in automatic mode, then if you switch to<br>
> the other version using the command<br>
> $ alternative --config<br>
> All the other slaves will switch associated with the group will switch over as<br>
> well.<br>
> Now that it is in manual mode, do I have to switch each slave myself? How?<br>
><br>
<br>
</div>No, the Auto/Manual mode only decides which group is chosen. In Auto mode,<br>
the group with highest priority is always selected. In manual, whatever is<br>
selected stays that way even if a higher priority group is installed.<br>
<br>
PS: Out of curiosity.. why do you need the Sun VM? Is something lacking<br>
in OpenJDK?<br>
<br>
<font color="#888888"><br>
</font></blockquote></div>Thanks, I think I get it now.<br>I had wanted to use NetBeans for PHP and also try out its new Python plugin, and I believe they need the latest version of Java, because without it I get error after error. Since I'm not a Java programmer, I don't have time to determine how to get it to play nice with the OpenJDK. <br>
PHP and Python plugins don't work with the NetBeans in the repository, or at least they didn't two months ago.<br>