After installing Java 6 using the Sun shell script installer, I wanted to set the default Java installation to the new Java 6 installation that I just installed. This is how you do it:
Found this ditty here.
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0/bin/javac 30
sudo update-alternatives --install /usr/bin/javac java /usr/lib/jvm/jdk1.6.0/bin/java 30
sudo update-alternatives --install /usr/lib/firefox/plugins/libjavaplugin.so firefox-javaplugin.so /usr/lib/jvm/jdk1.6.0/jre/plugin/i386/ns7/libjavaplugin_oji.so 30
sudo update-alternatives --config javac #then choose javac6
sudo update-alternatives --config java #choose java6
sudo update-alternatives --config firefox-javaplugin.so #choose java6 firefox-javaplugin.so
Found this ditty here.
powered by performancing firefox
Bad advice, see: https://help.ubuntu.com/community/Java(use update-java-alternatives to
ReplyDeletechange the ubuntu default jvm)
...instead.
Great post, thanks.
ReplyDeleteVisit Best Astrologer in Hyderabad
Online Love marriage Jathagam porutham, rasi natchatiram porutham. If you have any specific requests, please feel free to ask us.
ReplyDelete