tag:blogger.com,1999:blog-27659513.post1031965654136393819..comments2023-12-31T23:44:24.149+02:00Comments on FCIH: Installing JDK6 On UbuntuRamy Mahroushttp://www.blogger.com/profile/06875204608099539248noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-27659513.post-2956127610239034502008-03-01T09:07:00.000+02:002008-03-01T09:07:00.000+02:00I am unable to update-alternatives using these ins...I am unable to update-alternatives using these instructions. Can I tell me where I am wrong.<BR/><BR/>Thanks,<BR/>SV<BR/><BR/>root@sundar:/home/sundar# update-alternatives --install /usr/bin/java java /opt/jdk1.5.0_07/bin/java 60 --slave /usr/share/man/man1/java.1.gz java.1.gz /opt/jdk1.5.0_07/man/man1<BR/>root@sundar:/home/sundar# sudo update-alternatives --config java There are 4 alternatives which provide `java'.<BR/><BR/> Selection Alternative<BR/>-----------------------------------------------<BR/> 1 /usr/bin/gij-wrapper-4.1<BR/> 2 /usr/lib/jvm/java-gcj/jre/bin/java<BR/>*+ 3 /usr/lib/j2se/1.4/bin/java<BR/> 4 /usr/local/j2sdk1.4.2_12/bin/java<BR/><BR/>Press enter to keep the default[*], or type selection number:<BR/>root@sundar:/home/sundar# update-alternatives --install /usr/bin/java java /opt/jdk1.5.0_07/bin/java 60 --slave /usr/share/man/man1/java.2.gz java.1.gz /opt/jdk1.5.0_07/man/man1<BR/>root@sundar:/home/sundar# sudo update-alternatives --config java There are 4 alternatives which provide `java'.<BR/><BR/> Selection Alternative<BR/>-----------------------------------------------<BR/> 1 /usr/bin/gij-wrapper-4.1<BR/> 2 /usr/lib/jvm/java-gcj/jre/bin/java<BR/>*+ 3 /usr/lib/j2se/1.4/bin/java<BR/> 4 /usr/local/j2sdk1.4.2_12/bin/java<BR/><BR/>Press enter to keep the default[*], or type selection number:Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-27659513.post-16618713030232464662007-08-27T06:31:00.000+03:002007-08-27T06:31:00.000+03:00Also, there is a very easy alternative to both met...Also, there is a very easy alternative to both methods by downloading the<BR/>JDK6 from Ubuntu's package repos by typing the following in terminal:<BR/><BR/>sudo apt-get update<BR/>sudo apt-get install sun-java6-jdk<BR/><BR/>You're done! If you have multiple versions of Java and want to set one<BR/>of them as your default, then you have to check your current version<BR/>first using:<BR/><BR/>java -version<BR/><BR/>If the default one isn't what you want, then you can simply use this<BR/>command:<BR/><BR/>sudo update-java-alternatives<BR/><BR/>and select the alternative you want from your installed location, Enjoy :)SoCRaThttps://www.blogger.com/profile/14113794299367808027noreply@blogger.comtag:blogger.com,1999:blog-27659513.post-28314430900856575612007-03-01T09:29:00.000+02:002007-03-01T09:29:00.000+02:00Just a small tip for the readersInstead ofchmod 75...Just a small tip for the readers<BR/>Instead of<BR/>chmod 755 ./jdk-6-linux-i586.bin<BR/>you can do<BR/>chmod +x ./jdk-6-linux-i586.bin<BR/>the +x sets to executable, you can also make -x, +r, -r, +w, -w, +rw, -rx, any combination of those. r and w are for read and write.Mohammad Alagganhttps://www.blogger.com/profile/00636251663295114267noreply@blogger.com