Like everyone knows, the officially distributed Sun’s Java, doesn’t brings an internet browser plugin for x86_64 arch. You should have a good solution with OpenJDK, but it just doesn’t works properly with some authentication systems, like our Banco do Brasil (public Brazilian Bank).
But now, me and Paulo Matias have decided compile the one that was available and working (btw, it is used on BSD’s systems), meaning source-codes, and we made our own sun-jre WITH browser plugin!
The whole thing was a little bit complicated and slow. We used basically what was available for FreeBSD and NetBSD and we have been adapting for our ArchLinux. We did need a lot of disk space and a bit of patience. But, like almost everything is automated by PKGBUILD, our work had been more simple. Let’s work:
First thing we need is the source codes, how it can’t be redistribuited because of the JRL licence, we need download it manually, getting around 125MB.
What is it: “Patchset 4″
What is it: “JDK Binaries for Source Build 6u3″
What is it: “JDK 6u3 Source under the JRL license”
What is it: “Mozilla Binaries for Source Build 6u3 (Unix)”
Download all in the same directory and get the sun-jdk-jrl tarball from AUR. Follow with the work:
$ wget http://aur.archlinux.org/packages/sun-jdk-jrl/sun-jdk-jrl.tar.gz
$ tar -vzxf sun-jdk-jrl.tar.gz
Atention, the process below needs around 4GB of disk space to finish compile. So, release some space for the directory where you want compile to finish the process. after compiled and installed, you can erase this directory. Another thing is you need accept the licences before start the compile process, so, pay atention for them before continue.
$ makepkg -c
Done, the package was build. Should exists a file sun-jdk-jrl-VERSION-x86_64.pkg.tar.gz inside the directory, is just install it with pacman:
# pacman -U sun-jdk-jrl-6u3-1-x86_64.pkg.tar.gz
To prove that really work , below are some screenshots from my browser running the Banco do Brasil website: