关于eclipse的安装分两步:
1.eclipse的JAVA环境安装
2.eclipse的安装
eclipse需要在JAVA环境中才能运行的,在linux下也不例外
安装JDK:sudo apt-get install openjdk-7-jre-headless
下面就可以直接装eclipse了,根据自己的需要在官网上下载对应的版本,我下载的Eclipse IDE for C/C++ Developers, ,下载好后可以直接使用:进入eclipse目录,./eclipse
然后就是添加svn插件了,这里要注意(原因我也不是很清楚,只能说是个猜测,希望大牛能指点):在装svn插件之前需要安装eclipse的SVN接口组件“javaHL”,下面是我的猜测:
否则可能出现重启eclipse错误,会提示错误存放在config文件夹中的某个日志文件:
分割线
——————————————————————————————————————————————————
!SESSION 2014-02-24 03:08:21.971 -----------------------------------------------
eclipse.buildId=4.3.0.M20130911-1000
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=zh_CN
Framework arguments: -product org.eclipse.epp.package.cpp.product
Command-line arguments: -os linux -ws gtk -arch x86 -product org.eclipse.epp.package.cpp.product -clean
!ENTRY org.eclipse.core.runtime 4 0 2014-02-24 03:08:23.509
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle "org.eclipse.core.runtime_3.9.0.v20130326-1255 [94]" could not be resolved. Reason: Missing Constraint: Require-Bundle: org.eclipse.core.jobs; bundle-version="[3.2.0,4.0.0)"
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolverError(AbstractBundle.java:1332)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.getResolutionFailureException(AbstractBundle.java:1316)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:323)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:390)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1176)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:559)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:544)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:457)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:438)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:1)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:340)
!ENTRY org.eclipse.equinox.p2.reconciler.dropins 4 0 2014-02-24 03:08:23.537
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: The bundle
………………
——————————————————————————————————————————————————————
我是添加完这个组件后错误消失的。
安装eclipse的SVN可以参考这篇:http://blog.csdn.net/zjianbo/article/details/7396874
给eclipse添加快速启动:
sudo gedit /usr/share/applications/eclipse.desktop 添加eclipse桌面文件,后缀名必须是desktop
将
[Desktop Entry]
Type=Application
Name=Eclipse
Comment=Eclipse Integrated Development Environment
Icon=/home/xiaock/eclipse/icon.xpm
Exec=eclipse
Terminal=false
Categories=Development;IDE;Java;
添加到文本中保存即可