Debian 7.3系统中以前安装的eclipse 3.8-CDT开发环境已经能够工做了,可是今天打开时eclipse启动过程卡在Loading Workbench...处不动了,没有任何错误提示和输出。百度这个问题,基本都说是工做空间下的.metadata目录数据有问题,删除整个目录,或者是删除其中plugins目录下的org.eclipse.ui.workbench目录就能够了。通过尝试,删除以后eclipse确实能够正常启动了,可是发现CDT/git等插件都没有被加载。 git
继续百度加google,检查cdt等插件的按照位置,发现是在/usr/share/eclipse/dropins目录下的,根据eclipse官方的文档,目录结构是正确的。但是就是不被加载,搜索到同一个问题的很多,但是都没有明确的解决答案,有说是缺乏依赖,可又没说清楚具体的依赖,甚至在ubuntu的bug提交中看到了这个问题。折腾了1个多小时仍是没有结果,而后去看eclipse安装目录下的配置文件/usr/share/eclipse/configuration/config.ini内容。 shell
#This configuration file was written by: org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser #Wed Jun 27 11:07:02 UTC 2012 org.eclipse.update.reconcile=false eclipse.p2.profile=PlatformProfile osgi.instance.area.default=@user.home/workspace osgi.framework=file\:plugins/org.eclipse.osgi_3.8.0.dist.jar equinox.use.ds=true eclipse.buildId=I20120502-2000 osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.300.dist.jar@1\:start org.eclipse.swt.internal.gtk.useCairo=true org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator/bundles.info eclipse.product=org.eclipse.platform.ide osgi.splashPath=platform\:/base/plugins/org.eclipse.platform osgi.framework.extensions= osgi.bundles.defaultStartLevel=4 eclipse.application=org.eclipse.ui.ide.workbench eclipse.p2.data.area=@config.dir/../p2/ osgi.bundlefile.limit=100由于是eclipse新手,对这文件里面的配置项我是基本不知道什么含义,有什么做用。本着死马当活马医和大不了重装的心态,我把第一个配置从false改为了true,而后重启eclipse,神奇的事情出现了:eclipse正确加载cdt等插件了!!!org.eclipse.update.reconcile配置项有什么做用,依然不懂,有空研究学习一下。