“初始化 Java 工具”期间发生内部错误。在 Eclipse 启动时

发布于 2024-10-09 16:20:27 字数 2700 浏览 0 评论 0原文

我在启动时遇到这个奇怪的错误。我的环境可能出了什么问题?

alt text

这是错误:

>!ENTRY org.eclipse.core.jobs 4 2 2010-12-30 17:56:32.545
!MESSAGE An internal error occurred during: "Initializing Java Tooling".
!STACK 0
    org.eclipse.equinox.internal.provisional.frameworkadmin.FrameworkAdminRuntimeException: Not a file url: ../p2/
    at       org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:368)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.load(EquinoxManipulatorImpl.java:331)
    at org.eclipse.pde.internal.core.target.AbstractBundleContainer.getVMArguments(AbstractBundleContainer.java:722)
    at org.eclipse.pde.internal.core.target.TargetPlatformService.newDefaultTargetDefinition(TargetPlatformService.java:493)
    at org.eclipse.pde.internal.core.PluginModelManager.initDefaultTargetPlatformDefinition(PluginModelManager.java:458)
    at org.eclipse.pde.internal.core.PluginModelManager.initializeTable(PluginModelManager.java:428)
    at org.eclipse.pde.internal.core.PluginModelManager.getWorkspaceModels(PluginModelManager.java:886)
    at org.eclipse.pde.core.plugin.PluginRegistry.getWorkspaceModels(PluginRegistry.java:176)
    at org.eclipse.pde.internal.core.SearchablePluginsManager.computeContainerClasspathEntries(SearchablePluginsManager.java:128)
    at org.eclipse.pde.internal.core.ExternalJavaSearchClasspathContainer.getClasspathEntries(ExternalJavaSearchClasspathContainer.java:29)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2584)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2679)
    at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1866)
    at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:3443)
    at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.URISyntaxException: Not a file url: ../p2/
    at org.eclipse.equinox.internal.frameworkadmin.equinox.utils.FileUtils.fromFileURL(FileUtils.java:192)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.readp2DataArea(EquinoxFwConfigFileParser.java:362)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.readFwConfig(EquinoxFwConfigFileParser.java:224)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:366)

I am getting this strange error on startup. What could be wrong in my environment?

alt text

Here is the error :

>!ENTRY org.eclipse.core.jobs 4 2 2010-12-30 17:56:32.545
!MESSAGE An internal error occurred during: "Initializing Java Tooling".
!STACK 0
    org.eclipse.equinox.internal.provisional.frameworkadmin.FrameworkAdminRuntimeException: Not a file url: ../p2/
    at       org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:368)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.load(EquinoxManipulatorImpl.java:331)
    at org.eclipse.pde.internal.core.target.AbstractBundleContainer.getVMArguments(AbstractBundleContainer.java:722)
    at org.eclipse.pde.internal.core.target.TargetPlatformService.newDefaultTargetDefinition(TargetPlatformService.java:493)
    at org.eclipse.pde.internal.core.PluginModelManager.initDefaultTargetPlatformDefinition(PluginModelManager.java:458)
    at org.eclipse.pde.internal.core.PluginModelManager.initializeTable(PluginModelManager.java:428)
    at org.eclipse.pde.internal.core.PluginModelManager.getWorkspaceModels(PluginModelManager.java:886)
    at org.eclipse.pde.core.plugin.PluginRegistry.getWorkspaceModels(PluginRegistry.java:176)
    at org.eclipse.pde.internal.core.SearchablePluginsManager.computeContainerClasspathEntries(SearchablePluginsManager.java:128)
    at org.eclipse.pde.internal.core.ExternalJavaSearchClasspathContainer.getClasspathEntries(ExternalJavaSearchClasspathContainer.java:29)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2584)
    at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2679)
    at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1866)
    at org.eclipse.jdt.core.JavaCore.initializeAfterLoad(JavaCore.java:3443)
    at org.eclipse.jdt.internal.ui.InitializeAfterLoadJob$RealJob.run(InitializeAfterLoadJob.java:35)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.URISyntaxException: Not a file url: ../p2/
    at org.eclipse.equinox.internal.frameworkadmin.equinox.utils.FileUtils.fromFileURL(FileUtils.java:192)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.readp2DataArea(EquinoxFwConfigFileParser.java:362)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.readFwConfig(EquinoxFwConfigFileParser.java:224)
    at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:366)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

舟遥客 2024-10-16 16:20:27

不要删除所有完整的 .metadata

  • 备份 .metadata
  • 仅删除 .metadata/.plugins/org.eclipse.core.resources/.project
  • 重新启动 eclipse

观察:创建项目文件夹

进一步 - 如果您使用 svn/git/hg 有代码存储库链接它将被破坏,因此要恢复

  • 关闭 Eclipse,
  • 请从备份中复制相关项目以与 .metadata/.plugins/org.eclipse.core.resources/.project 中的当前项目合并
  • ,重新启动 eclipse

Downfall - 可能会发生偶发性失败错误(同步或其他)-无害

Do not delete all the full .metadata

  • Backup .metadata
  • delete only .metadata/.plugins/org.eclipse.core.resources/.project
  • restart eclipse

Observation : the projects folders are created

Further - if you are using svn/git/hg have code repository links it would be destroyed, so to reinstate

  • close eclipse
  • copy relevant projects from backup to merge with current projects in .metadata/.plugins/org.eclipse.core.resources/.project
  • restart eclipse

Downfall - sporadic fail error may occur (sync or something) - harmless

自我难过 2024-10-16 16:20:27

仅删除 .metadata/.plugins/org.eclipse.core.resources/.project 确实帮助我解决了我的问题,这与初始化 Java 工具是一样的。遇到此问题的人应该尝试此解决方案。

Deleting only .metadata/.plugins/org.eclipse.core.resources/.project really helped me with my problem, that was just the same about Initializing Java Tool. Who have this problem should try this solution.

无声无音无过去 2024-10-16 16:20:27

OSX Eclipse Luna 在初始化 Java 工具的 30% 处对我来说悬而未决。经过多次启动和强制退出周期后,我从命令行启动了 eclipse:

/usr/local/eclipse-luna/eclipse --clean

然后关闭 eclipse 并从任务栏重新启动,一切正常
这为我解决了问题

OSX Eclipse Luna was hanging for me at the 30% mark of Initializing Java Tool. After a number of startups and force quit cycles I started eclipse from the command line:

/usr/local/eclipse-luna/eclipse --clean

Then closed eclipse and restarted from the taskbar and all OK
This resolved the problem for me

滿滿的愛 2024-10-16 16:20:27

如果清理 .metadata 文件夹对您不起作用,您可能需要尝试另一种解决方案。 “只需关闭日食并再次打开它”。这适用于我在 Windows 7 64 位操作系统上运行的 eclipse-mars。我相信它也适用于在 eclipse 环境中运行的 Android 项目。

If cleaning .metadata folder doesn't work for you there's another solution you might want to try. "Just close the eclipse and open it again". That worked for my eclipse-mars running on Windows 7 64 bit OS. I believe it will work for Android projects too which runs in eclipse environment.

望她远 2024-10-16 16:20:27

“raj”的回答可以,谢谢各位!这是正确的。

除了他的解决方案之外,我还必须发表评论。请保存 .metadata 的副本

删除文件夹时请小心: .metadata/.plugins/org.eclipse.core.resources/.project

有一些名为“RemoteSystemsTempFiles”的文件夹,现在当您删除该文件夹时,您将不会看到问题你启动 eclipse 但当你关闭 eclipse 时你会出现其他错误,因为文件夹“RemoteSystemsTempFiles”不存在于 .projects 中

所以你需要复制你的 .metadataCOPIA/.plugins/org.eclipse.core.resources/.project/ RemoteSystemsTempFiles 到 .metadata/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles

因此,快速修复错误““初始化 Java 工具”。在 Eclipse 启动时”对我来说是:

1- 将工作区的文件夹“.metadata”复制到副本中。
2-删除文件夹“.metadata/.plugins/org.eclipse.core.resources/.project”
3-关闭日食>关闭 eclipse 时会出现错误。
4- 将文件夹 .metadataCOPIA/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles 复制到 .metadata/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles
5-星食,一切都好。

问候,

The answer from "raj" is ok, thank you men! it is correct.

In addition to his solution i have to comment. Please save a copy of your .metadata

Take care when you delete the folder: .metadata/.plugins/org.eclipse.core.resources/.project

There is some folder called "RemoteSystemsTempFiles" and now you won't see the trouble when you start eclipse but you will other error when you close eclipse, because the folder "RemoteSystemsTempFiles" doesn't exist into .projects

So you will ned to copy your .metadataCOPIA/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles to .metadata/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles

So, the quick fix to the error "“Initializing Java Tooling.” in Eclipse on startup" for me is:

1- Copy the folder ".metadata" of your workspace in a copy.
2- Delete the folder ".metadata/.plugins/org.eclipse.core.resources/.project"
3- Close eclipse > You will get an error on closing eclipse.
4- Copy the folder .metadataCOPIA/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles to .metadata/.plugins/org.eclipse.core.resources/.project/RemoteSystemsTempFiles
5- Star Eclipse and all is ok.

Regards,

放肆 2024-10-16 16:20:27

老问题,但我在 Luna 中仍然遇到此错误。清除 .projects 文件夹的安全方法是通过 UI 删除所有项目而不从磁盘中删除,然后将它们导入回工作区。

Old question, but I still get this error in Luna. A safe way to clear out the .projects folder is through the UI by deleting all projects without deleting from disk then importing them back into the workspace.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文