centos 7 下安装eclipse

参考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.

下载地址http://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 

 
centos 7 下安装eclipse

7 – Run Eclipse 


centos 7 下安装eclipse
 

That’s it. Start using Eclipse!!

相关推荐