java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3412617/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-10 19:32:30  来源:igfitidea点击:

java.lang.ClassNotFoundException: org.eclipse.core.runtime.adaptor.EclipseStarter

eclipse

提问by chandrasekhar

When i am starting my eclipse i am getting this exception.How could i resolve this.

当我开始我的日食时,我收到了这个异常。我该如何解决这个问题。

!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.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)

I cleared my workspace also but still i am getting same problem.

我也清理了我的工作区,但仍然遇到同样的问题。

I add one plugin name called tomcatPluginV321.zip.I extracted this in plugin folder.

我添加了一个名为 tomcatPluginV321.zip 的插件名称。我将其解压缩到插件文件夹中。

then i am facing this problem.

然后我面临这个问题。

回答by Hemant J

In your config.inifile of eclipse eclipse\configuration\config.inicheck this three things:

在你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

And check whether these jars are in place or not, the jar files depend upon your version of eclipse .

并检查这些 jars 是否到位,jar 文件取决于您的 eclipse 版本。

回答by Halsafar

I just went through this. If you want to manually move your Eclipse installation you need to find and edit relative references in the following files.

我刚刚经历了这个。如果您想手动移动您的 Eclipse 安装,您需要在以下文件中查找和编辑相关引用。

Relative to Eclipse install dir:

相对于 Eclipse 安装目录:

  • configuration/org.eclipse.equinox.source/source.info
  • configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
  • configuration/config.ini
  • eclipse.ini
  • 配置/org.eclipse.equinox.source/source.info
  • 配置/org.eclipse.equinox.simpleconfigurator/bundles.info
  • 配置/config.ini
  • eclipse.ini

For me in all these files there was a ../ reference to a .p2 folder in my home directory. Found them all using a simple grep:

对我来说,在所有这些文件中都有一个 ../ 对我的主目录中的 .p2 文件夹的引用。使用简单的 grep 找到它们:

grep '../../../../' * -R

Then just hit it with sed or manually go change it. In my case I moved it up one folder so easy fix:

然后只需使用 sed 或手动更改它即可。在我的情况下,我将它向上移动了一个文件夹,很容易修复:

grep -rl '../../../../' * -R | xargs sed -i 's/..\/..\/..\/..\//..\/..\/..\//g'

Now Eclipse runs fine again.

现在 Eclipse 又可以正常运行了。

回答by user 912177

check jar files in your project which are mentioned in config.ini if not proper then install manually and then follow the following steps:

检查项目中 config.ini 中提到的 jar 文件,如果不正确,则手动安装,然后按照以下步骤操作:

  1. Select your product configuration file, right-click on it and select Run As Run Configurations
  2. Select "Validate plug-ins prior to launching". This will check if you have all required plug-ins in your run configuration. If this check reports that some plug-ins are missing, try clicking the "Add Required-Plug-Ins" button. Also make sure to define all dependencies in your product. And your application start running
  1. 选择您的产品配置文件,右键单击它并选择 Run As Run Configurations
  2. 选择“启动前验证插件”。这将检查您的运行配置中是否有所有必需的插件。如果此检查报告缺少某些插件,请尝试单击“添加必需插件”按钮。还要确保定义产品中的所有依赖项。你的应用程序开始运行

回答by Henrik

Just copying the content of the zip-file to its prefered location from the zip-file will give you this error when you attempt to run the only executable that is visible in the archive. It is named similarly but it is not the real thing.

当您尝试运行存档中唯一可见的可执行文件时,只需将 zip 文件的内容从 zip 文件复制到其首选位置,就会出现此错误。它的名字相似,但它不是真实的。

You should let the archive extract itself to make the installation complete correctly. Doing so gives you an executable named eclipse.exe with which you will not get this error.

您应该让存档自行解压缩以正确完成安装。这样做会为您提供一个名为 eclipse.exe 的可执行文件,您将不会收到此错误。

回答by PatS

I have the same error after attempting to update Android Development Toolkit (ADT) plugin for Eclipse 3.5.

尝试更新 Eclipse 3.5 的 Android 开发工具包 (ADT) 插件后,我遇到了同样的错误。

I haven't figured out what caused this but I re-installed (unziped Eclipse) to fix it.

我还没有弄清楚是什么导致了这个问题,但我重新安装了(解压缩的 Eclipse)来修复它。

回答by zinking

my case seems to be invalid JRE version.

我的情况似乎是无效的 JRE 版本。

1.7+ required while I launched with 1.6

当我使用 1.6 启动时需要 1.7+

plus: I filtered some plugin jars which might be required. so changed to select all

加:我过滤了一些可能需要的插件jar。所以改为全选

回答by Abhishek Muralidharan

You might be launching your application from a Product file which is not linked to the plugin file. Reset your workspace and launch using the MANIFEST.MF > Overview > Testing > Launch.

您可能正在从未链接到插件文件的产品文件中启动您的应用程序。使用 MANIFEST.MF > Overview > Testing > Launch 重置您的工作区并启动。

回答by i-tms

This can a time consuming problem. For those who want to get on with their work because they do not want to waste much time, I would like to suggest that you download the zip file and unpack the zip file and use it. The zip file is available for all major OS.

这可能是一个耗时的问题。对于那些不想浪费太多时间而想要继续工作的人,我建议您下载zip文件并解压缩zip文件并使用它。zip 文件可用于所有主要操作系统。

https://www.eclipse.org/downloads/packages/

https://www.eclipse.org/downloads/packages/

Here instead of hitting the Downloadbutton, which will download the Eclipse installer, scroll to the middle area where a list of the various Eclipse IDEs with their respective features are shown. Select the Eclipse IDE of your like and click on the link on the right-hand-side to download the zip or corresponding file for your OS version.

在这里,不要点击下载按钮,这将下载 Eclipse 安装程序,而是滚动到中间区域,其中显示了各种 Eclipse IDE 及其各自功能的列表。选择您喜欢的 Eclipse IDE,然后单击右侧的链接以下载适用于您的操作系统版本的 zip 或相应文件。

If you still want to use your other Eclipse installations because, for example, you have plugins installed, then download the Eclipse installer and on the right-hand top corner press the icon with 3 minus. After that press Update, then after restart, install the version of Eclipse IDE, which you want (the one that you want to reactivate) in a different folder. The installation will take some time. After the installation is finished you should be able to start your old Eclipse IDE.

如果您仍然想使用其他 Eclipse 安装,例如,您安装了插件,那么下载 Eclipse 安装程序并在右上角按带有 3 减号的图标。之后按更新,然后在重新启动后,在不同的文件夹中安装您想要的(您想要重新激活的)版本的 Eclipse IDE。安装需要一些时间。安装完成后,您应该能够启动旧的 Eclipse IDE。

回答by ransh

I had the same issue.

我遇到过同样的问题。

just removed allmy worskspace:

刚刚删除所有的工作空间:

C:\Users\<name>\.<eclipse similar name>