I am trying to install oracle jdk7 64bit on my computer.
And I found this How do I install Oracle Java JDK 7?
However I found that it use the
update-alternative -install to install the jdk which is new to me.
I used to only extract the files and add the jdk location to the
PATH environment variable before.
Now,it seems that I have to run the following commands more than once if I want to install other executables:
sudo update-alternatives --install "/usr/bin/xx" "xx" "/usr/lib/jvm/jdk1.7.0/bin/xx" 1 sudo chmod a+x /usr/bin/xx
Just like the post said:
N.B. remember - Java JDK has many more executables that you can similarly install as above. java, javac, javaws are probably the most frequently required.
So I think this is rather inflexible. Then I want to know what is the advantage to use the
update-alternative to install jdk or something else?