【问题标题】:Java eclispe doesn't load - "An error has occured. See the log file"Java eclipse 未加载 - “发生错误。请参阅日志文件”
【发布时间】:2015-08-31 22:29:19
【问题描述】:

我的 Java eclipse (Kepler) 无法加载。当我尝试启动时,我收到以下消息:

“发生错误。请参阅日志文件。 C:\Program Files\eclipse\configuration\1434441085545.log。”

我尝试了一切:删除 eclipse 库,从工作区删除 .medata 库,更改工作区,从命令行清除。没有什么对我有用。无法在此处添加日志文件,因为行数太多...

!ENTRY org.eclipse.osgi 4 0 2015-06-16 11:18:00.746
!MESSAGE Application error
!STACK 1
java.lang.IllegalStateException: Unable to acquire application service. Ensure that the org.eclipse.core.runtime bundle is resolved and started (see config.ini).
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:74)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1450)

config.ini:

org.eclipse.update.reconcile=false
eclipse.p2.profile=epp.package.standard
osgi.instance.area.default=@user.home/workspace
osgi.framework=file\:plugins/org.eclipse.osgi_3.9.1.v20130814-1242.jar
equinox.use.ds=true
eclipse.buildId=4.3.0.M20130911-1000
osgi.bundles=reference\:file\:org.eclipse.equinox.simpleconfigurator_1.0.400.v20130327-2119.jar@1\:start
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=
eclipse.application=org.eclipse.ui.ide.workbench
eclipse.p2.data.area=@config.dir/../p2
osgi.bundles.defaultStartLevel=4

非常感谢!

【问题讨论】:

  • 日志文件说什么?
  • 日志文件中一定有一些有用的东西可以复制/粘贴到这里。否则我们无事可做..
  • !ENTRY org.eclipse.osgi 4 0 2015-06-16 11:04:46.050 !MESSAGE 自动激活捆绑包 org.eclipse.equinox.registry (141) 时出错。 !STACK 0 org.osgi.framework.BundleException:包 org.eclipse.equinox.registry 的 org.eclipse.core.internal.registry.osgi.Activator.start() 中的异常。在 org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734) 在 org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683) 等等。 ..
  • 我评论时字符有限
  • @AlonBenNatan 查看日志末尾附近或查找异常。而且我很确定您还没有尝试所有方法;-) 请重新格式化您的答案,将错误消息标记为代码并删除拼写错误。当一切看起来“整洁”时,人们会更乐意为您提供帮助

标签: java eclipse configuration


【解决方案1】:

您可以尝试在eclipse.ini 中添加以下行,忽略 eclipse.ini 中的一些现有行

-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20140116-2212
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
512M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.6
-Xms128m
-Xmx1024m

【讨论】:

  • 现在我收到这条消息:Eclipse 可执行启动器无法找到它的配套共享库。
  • 您是否检查了现有的 eclipse.ini 文件是否已经包含启动器配置?
  • 是的,对不起,我的错。我没有正确复制您的新行。但是,当我这样做时,答案仍然相同 - “出现错误,请参阅日志文件”
  • 我什至尝试下载不同版本的 eclipse,但我得到了同样的错误。这可能是我电脑里的东西。
  • 我还不够——“声望”聊天
猜你喜欢
  • 2019-04-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-06-30
  • 2019-04-05
  • 2015-04-25
  • 2021-07-22
相关资源
最近更新 更多