发布网友 发布时间:2022-02-26 10:18
共1个回答
热心网友 时间:2022-02-26 11:47
1 – 首先安装 JAVAyum install java2 – 检查 java 是否已经安装java -versionjava 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 – 下载 Eclipse LUNA 最终版解压到 /opt 目录下;tar -zxvf eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz -C /opt4 – 使符号链接目录ln -s /opt/eclipse/eclipse /usr/bin/eclipse5 – 创建一个 Gnome 启动vi /usr/share/applications/eclipse.desktop添加如下代码:[Desktop Entry]Encoding=UTF-8Name=Eclipse 4.4.1Comment=Eclipse LunaExec=/usr/bin/eclipseIcon=/opt/eclipse/icon.xpmCategories=Application;Development;Java;IDEVersion=1.0Type=ApplicationTerminal=06 – 检查 app 是否已经被添加7 – 运行 Eclipse