Tuesday, November 8, 2011

sun (oracle) java-plugin in debian

Debian testing (currently Wheezy) doesn't provide sun jre anymore. Sad but true.
The thing is: icedtea plugin doesn't work correct with raiffeisen bank ("raiffeisen connect"). So, I decided to install it manually.

Steps are quite straightforward:
1) download jre from Oracle website: http://java.com/en/download/index.jsp. They are so "marketing-shifted" - they provide JRE as "Java for your desktop computer" menu item :-) Anyway, download x64 or x32 .bin file (depending on your `uname -m`).

2) unpack this file into /usr/java/ directory:
$ sudo mkdir /usr/java/ && cd $_
$ sudo sh ~/Downloads/jre-6u29-linux-x64.bin

3) Use update-alternatives if you are using iceweasel(firefox) (like me):
sudo update-alternatives --install /usr/lib/mozilla/plugins/libjavaplugin.so mozilla-javaplugin.so /usr/java/jre1.6.0_29/lib/amd64/libnpjp2.so 1600
If you not familiar with `update-alternatives`, read the manual first to understand this.

That's All. I'm sure it's pretty much the same with x32 and/or Chrome/Opera.

UP: not the same way: chromium doesn't have 'alternatives', so simply make symlink to it's plugin directory (/usr/lib/chromium-browser/plugins/)

No comments:

Post a Comment