请问如何使用终端在Ubuntu 12.04上安装最新的Eclipse Classic(4.2)?如果你能指导我一步一步,我将不胜感激。如何在Ubuntu 12.04上使用终端安装Eclipse Classic的最新版本?
9
A
回答
8
查看此博客文章here,了解分步说明。
在记录流程一步一步,并在评论中笔者已经包括脚本 -
#!/bin/sh
ECLIPSE=/usr/lib/eclipse/eclipse
inject_update_site(){
if [ ! -e "$1" ] ; then
echo "W: Cannot find $1" 2>&1
return 1
fi
cat - >>"$1" <<EOF
repositories/http\:__download.eclipse.org_releases_indigo/enabled=true
repositories/http\:__download.eclipse.org_releases_indigo/isSystem=false
repositories/http\:__download.eclipse.org_releases_indigo/nickname=Indigo Update Site
repositories/http\:__download.eclipse.org_releases_indigo/uri=http\://download.eclipse.org/releases/indigo/
EOF
}
if [ ! -d ~/.eclipse/ ] ; then
$ECLIPSE -clean -initialize || exit $?
artifact=$(find ~/.eclipse \
-regex .*/profileRegistry/.*/org.eclipse.equinox.p2.artifact.repository.prefs)
metadata=$(find ~/.eclipse \
-regex .*/profileRegistry/.*/org.eclipse.equinox.p2.metadata.repository.prefs)
if [ -z "$artifact" ] || [ -z "$metadata" ]; then
echo "W: Cannot inject update-sites, cannot find the correct config." 2>&1
else
(inject_update_site "$artifact" && \
inject_update_site "$metadata" && \
echo "I: Injected update sites") || echo "W: Could not inject update sites." 2>&1
fi
fi
exec $ECLIPSE "[email protected]"
其中工程。
20
步骤1»从这里
sudo apt-get install openjdk-7-jdk
步骤2»下载最新版本安装Java JDK或JRE http://www.eclipse.org/downloads/?osType=linux
步骤3»将下载的程序包到/ opt目录
sudo mv eclipse-SDK-4.2.2-linux-gtk.tar.gz /opt
步骤4»提取软件包
sudo tar -xvf /opt/eclipse-SDK-4.2.2-linux-gtk.tar.gz -C /opt
步骤5»创建一个新的桌面文件eclipse.desktop在的/ usr /共享/应用/并添加以下行。
[Desktop Entry]
Name=Eclipse
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop
步骤6»只需将此eclipse.desktop文件拖到发射台。
0
执行tar命令之前,请务必到CD到/ opt文件夹。如果你不这样做,那么tar命令将在你当前的目录中创建eclipse目录。
0
安装Java JDK或JRE中运行以下命令,它会为你安装Eclipse之后,
sudo易于得到安装Eclipse
相关问题
- 1. 在Ubuntu上安装Gradle 12.04
- 2. 如何在Ubuntu 12.04上安装qwtpolar库?
- 3. 如何在Ubuntu上安装最新的wkhtmltopdf 12.04
- 4. 在Ubuntu 12.04上安装libuv
- 5. 在Ubuntu上安装opencv4tegra 12.04
- 6. 在Ubuntu上安装RDFlib 12.04
- 7. 如何在Ubuntu 12.04上安装ZENOSS 4.2.5?
- 8. 在终端上从Ubuntu安装Numpy 1.9.2
- 9. 如何在Ubuntu上安装mongodb-clients最新版本?
- 10. 无法在ubuntu-12.04上安装Aircrack-ng
- 11. 在Ubuntu上安装Compass&Susy 12.04
- 12. 无法在Ubuntu 12.04上安装xdebug LTS
- 13. 在ubuntu上安装glibc 11精确(12.04)
- 14. 如何在Ubuntu上使用Open JDK 1.9安装sbt 0.13.8或最新版本
- 15. 如何在Eclipse Classic中安装Eclipse Marketplace?
- 16. 在Ubuntu安装RVM 12.04
- 17. 在Linux上安装Navicat Ubuntu 12.04
- 18. 在Ubuntu上安装Eclipse
- 19. 如何在Ubuntu上启动eclipse 12.04
- 20. 无法在ubuntu上安装g ++ 12.04
- 21. 如何在Ubuntu中安装clang 3.6 12.04
- 22. 在Ubuntu上安装Python 3.2 12.04
- 23. 在Ubuntu 12.04上安装Hadoop 2.6.0
- 24. 如何在ubuntu上安装新版本的gcc
- 25. Python - 在Ubuntu 10.04上安装matplotlib最新版本LTS
- 26. 在Ubuntu上安装Eclipse/Java程序
- 27. 如何在高雅的最新版本中安装Mac Classic主题?
- 28. 在Ubuntu上启动时Eclipse崩溃12.04
- 29. 如何在Ubuntu上安装单声道最新的Alpha版本16.04
- 30. 在Ubuntu 12.04上通过pip安装matplotlib 12.04
11:/tmp/eclipse.sh:语法错误:意外换行符 – jameshfisher 2014-02-03 17:47:53
@jameshfisher:确保你使用Unix,而不是DOS行结尾 – reinierpost 2015-04-14 13:19:10