/* Update September 2012 (pre-Slackware 14.0 only)
Check the comments on how to adapt the slackbuild to Oracle’s Java 7 */
So your Firefox plugin checker complains about an outdated Java plugin, and you are looking to place the blame.
Well, look no further than to the mirror to find the person to blame… yes it’s your system and it’s your responsibility to maintain it.
So what exactly is a new Slackware user supposed to do you might ask, but not for long.
If you’re unacquainted with Slackware and maintaing packages, then here is the (really) short version.
Patrick Volkerding, the founder and maintainer of the Slackware Linux distribution uses SlackBuild scripts to compile the official packages. SlackBuild scripts themselves are executable shell scripts that you run as root to configure, compile, and create Slackware packages. Using this approach, your system allows you to keep track of all packages installed.
The following example is for the 64-bit x86_64 release, for a 32-bit x86 system you will have to get the equivalent 32-bit source and java binary.
With all official packages, you have the SlackBuild scripts available with the source bundle.
Lets download the source including the SlackBuild script for Java (jre) from a Slackware mirror.
wget -r -l0 -R .bin -nH --cut-dirs=5 ftp://slackware.mirrors.tds.net/pub/slackware/slackware64-13.37/source/l/jre/ # -r -l0 Download all files and subfolders from the specified path # -R .bin Reject all .bin files # -nH Dont prefix direcories with the host # --cut-dirs=5 Ignore all folders above /jre
This will create a new folder named jre in your current working directory.
Next, download the latest version of Java from http://java.com/en/download/manual.jsp and place it in your new jre folder.
Make sure to select the binary file and not the RPM.
For Java 6.27 (current as of writing) that equals jre-6u27-linux-x64.bin
Enter the jre folder and edit the file jre.SlackBuild modifying the lines listing the Java version from:
Save the file and switch to the root user (su -).
Now, from within the jre folder, make the jre.SlackBuild executable with the command:
chmod +x jre.SlackBuild
Then execute the script with:
Afterward, move the finished package to your jre folder for safe keeping.
mv /tmp/jre-6u27-x86_64-1.txz /your-path-here/jre/
Finally, from within the jre folder (or wherever you moved the finished package) upgrade the jre package with with the command:
Your system should then report back with the message:
Package jre-6u25-x86_64-1 upgraded with new package ./jre-6u27-x86_64-1.txz.
After a restart, Firefox should now be pleased with your current Java plugin.