Thursday, September 14, 2017

ubuntu 11 10 java installation

ubuntu 11 10 java installation


In ubuntu 11.10 sun-java6 is no longer in the repositories. It is *suggested* to install openjdk. I decided to give it a try.
Earlier I was kinda cautious regarding it, but now, since suns (oracles) jdk is not in favor, lets follow the trend. So choose what you need installed:

jdk -> $ sudo apt-get install openjdk-6-jdk

jre -> $ sudo apt-get install openjdk-6-jre

browser plugin -> $ sudo apt-get install icedtea6-plugin

Well, I have issues with icedtea plugin-my ibank2 applet (internet banking) is not working properly, so I had to get back suns plugin.
Ive downloaded the jre, installed it (it basically just unpacks itself). The you need to symlink the plugin. (2 options, root and non root). Assuming youve installed jre into /mnt/wind/bin/java/sun-java/
#install for all. Root version
$ sudo ln -s /mnt/wind/bin/java/sun-java/jre1.6.0_29/lib/amd64/libnpjp2.so /usr/lib/mozilla/plugins/

#if you want a non root install. Just for one user:
$ mkdir -p ~/.mozilla/plugins
$ ln -s /mnt/wind/bin/java/sun-java/jre1.6.0_29/lib/amd64/libnpjp2.so ~/.mozilla/plugins/

Now you should have suns browser plugin in firefox and chrome!
If you want sun jre to be the default one, you need to manually update the system to let it know that a new java is present via update-alternatives. See man page, its good.

P.S. If you find it helpful - feel free to click on some ads :)

download file now