This is the third part in the series ‘Setting up the Java Dev Environment in Slackware‘. The previous part was to discuss about how to install IDEs for java development in Slackware. And it was ending with mentioning IntelliJ IDEA but without giving the steps to install it. So this part will be dealing with that.
Steps for installation :
- Download the Gnu/Linux package.
- Login as root :
- Copy the downloaded file to /opt/ :
# cp /home/user/downloads/ideaIC-12.1.4.tar.gz /opt/
- Uncompress the file and rename the uncompressed directory :
# cd /opt/
# tar -xzvf /opt/ideaIC-12.1.4.tar.gz
# mv -f ideaIC-12.1.4/ idealC
- Create an executable file :
Open the file in an editor
and paste the following lines
OR we can directly link the `
# ln -fs /opt/idealC/bin/idea.sh /usr/bin/IDEA
but I think the first approach is the neat one.
- Create an entry in menu :
Create an entry in KDE or XFCE Menu.
So we have installed the jdk in the Slackware system ( part I ). But for java program development it is not enough, for effective management of code we need to have a good Ides. And two of them are Eclipse and Netbeans.
First Method :
Second Method : There exists links to the sites which provides installers, download them and install eclipse (You might have to have admin rights)
Third Method : Use Slack builds.
There is an editor called JEdit which has plenty of plugins to empower it for code management.
Happy Slacking guys 🙂
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 🙂