当我开始我的日食时,我得到了这个例外.我怎么能解决这个问题.
!SESSION Thu Aug 05 12:52:23 IST 2010 ------------------------------------------
!ENTRY org.eclipse.equinox.launcher 4 0 2010-08-05 12:52:23.805
!MESSAGE Exception launching the Eclipse Platform:
!STACK
java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
at org.eclipse.equinox.launcher.Main.main(Main.java:1287)
Run Code Online (Sandbox Code Playgroud)
我也清理了我的工作区但仍然遇到同样的问题.
我添加了一个名为tomcatPluginV321.zip的插件名称.我在插件文件夹中解压缩了它.
然后我面临这个问题.
小智 31
在你config.ini
的eclipse文件中eclipse\configuration\config.ini
检查这三件事:
osgi.framework=file\:plugins\\org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.0.v20080604.jar@1\:start
org.eclipse.equinox.simpleconfigurator.configUrl=file\:org.eclipse.equinox.simpleconfigurator\\bundles.info
Run Code Online (Sandbox Code Playgroud)
并检查这些罐子是否到位,jar文件取决于你的eclipse版本.
我刚刚经历过这个。如果您想手动移动 Eclipse 安装,您需要在以下文件中查找并编辑相关引用。
相对于 Eclipse 安装目录:
对于我来说,在所有这些文件中都有一个 ../ 对我的主目录中的 .p2 文件夹的引用。使用简单的 grep 找到它们:
grep '../../../../' * -R
Run Code Online (Sandbox Code Playgroud)
然后用 sed 打它或者手动去改变它。就我而言,我将其移至一个文件夹,这样很容易修复:
grep -rl '../../../../' * -R | xargs sed -i 's/..\/..\/..\/..\//..\/..\/..\//g'
Run Code Online (Sandbox Code Playgroud)
现在 Eclipse 又正常运行了。
尝试更新 Eclipse 3.5 的 Android Development Toolkit (ADT) 插件后,我遇到了同样的错误。
我还没弄清楚是什么原因造成的,但我重新安装(解压了 Eclipse)来修复它。
归档时间: |
|
查看次数: |
109585 次 |
最近记录: |