Install Eclipse on CentOS 6.5 - jdk

Eclipse is a universal IDE for developer. It is strong because you can add plugins to do what you want on eclipse. Now, let me tell you how to instal it.

DOWNLOADS

1.Download JDK from the website:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html:http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/ ORIGINAL ARTICLE(Install Eclipse):http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/ “eclipse”)

I suppose your download location is ~/Downloads/jdk-7u51-linux-i586.rpm

2.Download Eclipse from the website:https://www.eclipse.org/downloads/
I choose the Eclipse Standard 4.3.2, you can choose your proper one.

I suppose your download location is ~/Downloads/eclipse-standard-kepler-SR2-linux-gtk.tar.gz

INSTALL

1.Install JDK
$sudo rpm -Uvh ~/Downloads/jdk-7u51-linux-i586.rpm

2.Install eclipse
$sudo tar -xzf ~/Downloads/eclipse-standard-kepler-SR2-linux-gtk.tar.gz -C /opt/

Then you will find /opt/eclipse.

3.Create eclipse executable on /usr/bin path
$sudo vim /usr/bin/eclipse

And then add these content to file

#!/bin/sh
export ECLIPSE_HOME=”/opt/eclipse”
$ECLIPSE_HOME/eclipse $*

##end###

$sudo chmod 755 /usr/bin/eclipse

4.Create Gnome desktop launcher
$sudo vim /usr/share/applications/eclipse.desktop

And add content to file

######start###
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse
Comment=Eclipse SDK 4.3.1
Exec=eclipse
Icon=/opt/eclipse/icon.xpm
Terminal=false
Type=Application
Categories=GNOME;Application;Development;
StartupNotify=true

######end####

5.Start Eclipse
$eclipse &

You will also find the icon of eclipse in the Menu bar->Applications->Programming->Eclipse

ORIGINAL ARTICLE(Install JDK):http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-7-on-fedora-centos-red-hat-rhel/
ORIGINAL ARTICLE(Install Eclipse):http://www.if-not-true-then-false.com/2010/linux-install-eclipse-on-fedora-centos-red-hat-rhel/