We have install java (see here) now we will install an IDE for developing in our Slackware machine. In this article we will install latest Eclipse IDE using generic method. Alternatively you can install it using SlackBuild but we won’t cover that.
What you need:
- Slackware64 14.0 (well, that’s obvious)
- Eclipse binary for linux. download from here
The latest Eclipse IDE (per January 15th 2013) is Juno. Select the appropriate one, the one for Linux 64 bit. Of course you need to download the Eclipse for JAVA, although Eclipse for C++ is good too. The latest eclipse would be eclipse-java-juno-SR1-linux-gtk-x86_64.tar.gz. download it.
Now extract the file you have download to /opt/ directory. You might need root privileges to do this. Installing to /opt/ is a good practice for FHS (Filesystem Hierarchy Standard) as optional software is installed on separated place. To do so in command line, invoke this:
tar -xvf eclipse-java-juno-SR1-linux-gtk-x86_64.tar.gz -C /opt
Once you have done, you will get a new directory eclipse under /opt. Change the ownership to your username, for example user xathrya, by invoking this:
chown -R xathrya eclipse
Of course, change the xathrya with your username.
Now create the link to your menu or desktop. Link it to /opt/eclipse/eclipse. If you are using KDE, you can follow this guide. Point your application to /opt/eclipse/eclipse.
Congratulation! You have successfully install Eclipse!
But wait, if you face something like this:
A Java Runtime Environment (JRE) or Java Development Kit (JDK)must be available in order to run Eclipse. No Java virtual machinewas found after searching the following locations:<some path here> in your current PATH
Then you need to do extra thing!
Edit /opt/eclipse/eclipse.ini so it would be be like this:
[sourcecode language="bash"]-startup plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120522-1813 -product org.eclipse.epp.package.cpp.product --launcher.defaultAction openFile -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m --launcher.defaultAction openFile -vm /usr/lib64/java/bin/java -vmargs -dosgi.requiredJavaVersion=1.5 -dhelp.lucene.tokenizer=standard -XX:MaxPermSize=256m -Xms40m -Xmx512m[/sourcecode]
Now run your eclipse once more 😀slackware