Setting up the Java Dev Environment in Slackware 14 – Part 1

From Slackware 14 jdk is not available as txz package in the installation medium, instead of the jdk package  ‘extra’ directory contains the Slackbuild script to convert the official jdk package by Oracle to Slackware txz formated package.

So here goes the steps for jdk Slackware package creation and installation

  1. Open the installation medium (cd containing the ‘extra’ directory or the dvd) in a file manager.
  2. Find the directory ‘java’ in the ‘extra’ directory of the installation medium
  3. Copy the ‘java’ folder to any place in your system.
  4. Download the jdk tarball ( Let it be jdk-7u7-linux-x64.tar.gz for example ) from Oracle website and copy it to the JAVA_PATH ( which is the copied ‘java’ directory path, like /home/abhi/java )
  5. Unzip the Slackbuild tarball inside the JAVA_PATH directory and copy the jdk into the Slackbuild directory
  6. Make Slackbiuld script executable, i.e, #chmod +x JAVA_PATH/java.SlackBuild
  7. Run the Slackbuild script, cd JAVA_PATH && ./java.SlackBuild  /tmp/jdk-7u7-linux-x64.txz
  8. Run the command   upgradepkg –install-new jdk-7u7-linux-x86_64-1.txz
  9. Create java programs and test your java skills

Happy coding and Happy slacking buddies 🙂



6 thoughts on “Setting up the Java Dev Environment in Slackware 14 – Part 1

  1. because the java path is a link to a ‘local’ directory in the slackware distro the text is here a bit fuzzy.
    but thanks anyway it succeeded fine after some strucle.

  2. I think that the point 7 should be corrected: the slackbuild needs the path where the jdk or the jre is located /tmp dire, for example), not a dire where to place the txz (’cause as always this path is specified into the slackbuild itself!!)
    So, the 7 point should be something like

    $ ./java.SlackBuild /tmp/jdk-7u7-linux-x64.tar.gz

    (note the the extension!) or, following your meme indication

    $ ./java.SlackBuild jdk-7u7-linux-x64.tar.gz

    ’cause you alredy copied it into your JAVE dir.. I don’t know if it would need the full path, however..

    see ya!

    • I’ll check this soon, I posted this after doing it in my system, but after 1 week or something. wrote it from memory. 🙂
      Thanks for your sugestion 🙂

  3. Setting up the Java Dev Environment in Slackware 14 – Part 2 | Slacker Boy

  4. Hi my family member! I want to say that this post is amazing,
    nice written and come with almost all significant infos.
    I would like to see extra posts like this .

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