I recently upgraded to Fedora 16 (from fedora 12) and read / said that instead of setting up different JDKs with a simple symbolic link and setting my $ PATH to that symbolic link, I should use alternatives.
What I donβt understand is how alternatives are better for managing your jdk when you think you have to run: alternatives --config not only for "java", but for all auxiliary tools (javac, javaws, jstack, etc). This seems pathetic compared to:
(Assume $ PATH = / opt / local / java / current / bin: ...)
rm /opt/local/java/current ln -s /path/to/unpacked/jdkX /opt/local/java/current
So my question is:
Why do I hear alternatives - is this the right way to manage Java tools in newer versions of Fedora when it seems a lot more cumbersome to completely switch the JDK? Was I just given bad information or was I missing something important regarding alternatives?
(NOTE: Feel free to be cruel if the alternatives are clearly better in some way. I know that I'm pretty much unaware of this tool)
source share