How to install the latest Java in Slackware

Update 2: There’s now a script that can repackage Oracle’s JRE or JDK into a Slackware package here (64-bit here). Just follow the instructions in the README file. Again, here is some information about installing OpenJDK.

Update: The following information should still work, but it is somewhat obsolete now that Oracle Java has gone away from Slackware due to licensing restrictions. Slackware 13.37 is the last version of Slackware that has a SlackBuild script for Oracle Java. Consider taking a look at OpenJDK.

There is no official SlackBuild script for Java 7 yet, but I believe the following works.

1. Download the JDK
2. Download jdk.SlackBuild, slack-desc, and profile.d (use slackware64-13.37 if using 64-bit)
3. Edit VERSION and DVER in the SlackBuild script to match the version of the downloaded JDK and change the sh to tar xf and change the .bin to .tar.gz
4. /bin/sh jdk.SlackBuild
5. installpkg /tmp/jdk-7uxx-i586-1.txz where xx is the update number

If installing the JRE, use the files here.


4 responses to “How to install the latest Java in Slackware

  1. Carlos Fagiani Junior

    o que seria o DVER????

  2. Carlos Fagiani Junior

    I read your blog, and i asked in portuguese… Sorry…
    Tks for the reply…

  3. Thanks, this was very helpful. I compiled jre-7u51-i586-1.txz and jre-7u51-x86_64-1.txz for use with unRaid.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s