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
- Open the installation medium (cd containing the ‘extra’ directory or the dvd) in a file manager.
- Find the directory ‘java’ in the ‘extra’ directory of the installation medium
- Copy the ‘java’ folder to any place in your system.
- 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 )
- Unzip the Slackbuild tarball inside the JAVA_PATH directory and copy the jdk into the Slackbuild directory
- Make Slackbiuld script executable, i.e, #chmod +x JAVA_PATH/java.SlackBuild
- Run the Slackbuild script, cd JAVA_PATH && ./java.SlackBuild /tmp/jdk-7u7-linux-x64.txz
- Run the command upgradepkg –install-new jdk-7u7-linux-x86_64-1.txz
- Create java programs and test your java skills
Happy coding and Happy slacking buddies
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.
Happy to know that this post was helpful to you
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
Setting up the Java Dev Environment in Slackware 14 – Part 2 | Slacker Boy
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 .