Install eclipse under centos 7

Refer to http://www.unixmen.com/install-eclipse-luna-ide-centos-7-rhel-7/

1 – First install JAVA

yum install java

2 – Check if java installed

java -version
java version "1.7.0_51"
OpenJDK Runtime Environment (rhel-2.4.5.5.el7-x86_64 u51-b31)
OpenJDK 64-Bit Server VM (build 24.51-b03, mixed mode)

3 – Download the final version of Eclipse LUNA

Extract to /opt directory.

Download addresshttp://www.eclipse.org/downloads/download.php?file=/technology/epp/dow…

tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt

4 – Make symbolic link to bin directory

ln -s /opt/eclipse/eclipse /usr/bin/eclipse

5 – Create a  Gnome Launcher

vi /usr/share/applications/eclipse.desktop

..and add:

[Desktop Entry]
Encoding=UTF-8
Name=Eclipse 4.4.1
Comment=Eclipse Luna
Exec=/usr/bin/eclipse
Icon=/opt/eclipse/icon.xpm
Categories=Application;Development;Java;IDE
Version=1.0
Type=Application
Terminal=0

6 – check if the app has been add 

 

7 – Run Eclipse 



 

That’s it. Start using Eclipse!!

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326817681&siteId=291194637