2 sumsear sumsear 于 2016.09.23 09:19 提问

eclipse启动异常,大家帮帮忙

最近在eclipse官网上下载了最新的eclipse neon.1解压版,启动时异常,
图片说明
图片说明
日志如下:
!ENTRY org.eclipse.osgi 4 0 2016-09-23 09:09:07.813
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "org.eclipse.ui.ide.workbench" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.touchpoint.natives.nativePackageExtractor, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.mat.api.parse, org.eclipse.oomph.setup.core.SetupArchiver, org.eclipse.pde.build.Build.
at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

!ENTRY org.eclipse.oomph.p2.core 4 0 2016-09-23 09:09:07.883
!MESSAGE FrameworkEvent ERROR
!STACK 0
org.osgi.framework.BundleException: Exception in org.eclipse.oomph.p2.internal.core.P2CorePlugin$Implementation.stop() of bundle org.eclipse.oomph.p2.core.
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:850)
at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:946)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314)
at org.eclipse.osgi.container.Module.doStop(Module.java:636)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1661)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1580)
at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147)
at org.eclipse.osgi.container.Module.doStop(Module.java:636)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.ExceptionInInitializerError
at org.eclipse.oomph.p2.internal.core.AgentImpl.initializeProvisioningAgent(AgentImpl.java:503)
at org.eclipse.oomph.p2.internal.core.AgentImpl.getProvisioningAgent(AgentImpl.java:569)
at org.eclipse.oomph.p2.internal.core.AgentImpl.getProfileRegistry(AgentImpl.java:309)
at org.eclipse.oomph.p2.internal.core.AgentImpl$1.initializeFirstTime(AgentImpl.java:128)
at org.eclipse.oomph.p2.internal.core.PersistentMap.load(PersistentMap.java:111)
at org.eclipse.oomph.p2.internal.core.AgentImpl.(AgentImpl.java:175)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.createElement(AgentManagerImpl.java:91)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.createElement(AgentManagerImpl.java:1)
at org.eclipse.oomph.p2.internal.core.PersistentMap.addElement(PersistentMap.java:151)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl.addAgent(AgentManagerImpl.java:221)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.initializeFirstTime(AgentManagerImpl.java:128)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.initializeFirstTime(AgentManagerImpl.java:97)
at org.eclipse.oomph.p2.internal.core.PersistentMap.load(PersistentMap.java:111)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl.(AgentManagerImpl.java:141)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl.(AgentManagerImpl.java:63)
at org.eclipse.oomph.p2.core.P2Util.getAgentManager(P2Util.java:54)
at org.eclipse.oomph.p2.internal.core.P2CorePlugin$Implementation.stop(P2CorePlugin.java:83)
at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:830)
at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:823)
... 13 more
Caused by: java.lang.NullPointerException
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager$Artifact.(CachingRepositoryManager.java:504)
... 34 more
Root exception:
java.lang.ExceptionInInitializerError
at org.eclipse.oomph.p2.internal.core.AgentImpl.initializeProvisioningAgent(AgentImpl.java:503)
at org.eclipse.oomph.p2.internal.core.AgentImpl.getProvisioningAgent(AgentImpl.java:569)
at org.eclipse.oomph.p2.internal.core.AgentImpl.getProfileRegistry(AgentImpl.java:309)
at org.eclipse.oomph.p2.internal.core.AgentImpl$1.initializeFirstTime(AgentImpl.java:128)
at org.eclipse.oomph.p2.internal.core.PersistentMap.load(PersistentMap.java:111)
at org.eclipse.oomph.p2.internal.core.AgentImpl.(AgentImpl.java:175)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.createElement(AgentManagerImpl.java:91)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.createElement(AgentManagerImpl.java:1)
at org.eclipse.oomph.p2.internal.core.PersistentMap.addElement(PersistentMap.java:151)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl.addAgent(AgentManagerImpl.java:221)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.initializeFirstTime(AgentManagerImpl.java:128)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl$1.initializeFirstTime(AgentManagerImpl.java:97)
at org.eclipse.oomph.p2.internal.core.PersistentMap.load(PersistentMap.java:111)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl.(AgentManagerImpl.java:141)
at org.eclipse.oomph.p2.internal.core.AgentManagerImpl.(AgentManagerImpl.java:63)
at org.eclipse.oomph.p2.core.P2Util.getAgentManager(P2Util.java:54)
at org.eclipse.oomph.p2.internal.core.P2CorePlugin$Implementation.stop(P2CorePlugin.java:83)
at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:830)
at org.eclipse.osgi.internal.framework.BundleContextImpl$4.run(BundleContextImpl.java:1)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.internal.framework.BundleContextImpl.stop(BundleContextImpl.java:823)
at org.eclipse.osgi.internal.framework.EquinoxBundle.stopWorker0(EquinoxBundle.java:946)
at org.eclipse.osgi.internal.framework.EquinoxBundle$EquinoxModule.stopWorker(EquinoxBundle.java:314)
at org.eclipse.osgi.container.Module.doStop(Module.java:636)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.decStartLevel(ModuleContainer.java:1661)
at org.eclipse.osgi.container.ModuleContainer$ContainerStartLevel.doContainerStartLevel(ModuleContainer.java:1580)
at org.eclipse.osgi.container.SystemModule.stopWorker(SystemModule.java:270)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule.stopWorker(EquinoxBundle.java:147)
at org.eclipse.osgi.container.Module.doStop(Module.java:636)
at org.eclipse.osgi.container.Module.stop(Module.java:498)
at org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)
at org.eclipse.osgi.internal.framework.EquinoxBundle$SystemBundle$EquinoxSystemModule$1.run(EquinoxBundle.java:165)
at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.NullPointerException
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager$Artifact.(CachingRepositoryManager.java:504)
... 34 more!

我的eclipse.ini文件的配置如下:
-vm
C:\Program Files\Java\jdk1.7.0_51\bin\javaw.exe
-startup

plugins/org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar

--launcher.library

plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.400.v20160518-1444

-product

org.eclipse.epp.package.android.product

--launcher.defaultAction

openFile

-showsplash

org.eclipse.platform

--launcher.defaultAction

openFile

--launcher.appendVmargs

-vmargs

-Dosgi.requiredJavaVersion=1.7.0_51
-XX:PermSize=256m
-XX:MaxPermSize=256m
-Dosgi.requiredJavaVersion=1.7.0_51

-Xms256m

-Xmx1024m
各位大神能否帮我看看问题出在哪里!

5个回答

mrszsongzi
mrszsongzi   2016.09.23 17:21
已采纳

在 DOS console, 运行java -version, 看看当前系统变量中对应的java 版本,如果是java 8, 老的eclispe不支持

sumsear
sumsear 虽然是新的eclipse,其实它也只支持1.8及以上的java版本!
大约一年之前 回复
ljheee
ljheee   Rxr 2016.09.23 09:53

Application "org.eclipse.ui.ide.workbench" could not be found in the registry. 注册表里没有?

sumsear
sumsear 我下载的是解压版,其实安装版也用过,都是出现这样的问题,但是我现在电脑上的老版本的eclipse也是解压版的,运行是正常的哦
大约一年之前 回复
Marksinoberg
Marksinoberg   Ds   Rxr 2016.09.23 10:20
 Caused by: java.lang.NullPointerException
at org.eclipse.oomph.p2.internal.core.CachingRepositoryManager$Artifact.(CachingRepositoryManager.java:504)
... 34 more
Root exception:
java.lang.ExceptionInInitializerError

感觉还是初始化的问题,看看你的电脑是不是对这个版本不兼容呢?

sumsear
sumsear 我的电脑是win7 64位盗版系统,下载的也是64位的,至于兼容性具体要怎么看,这个真不会!!!
大约一年之前 回复
u010808544
u010808544   2016.09.23 14:44

你下载的这个有问题,给你个能用的https://yunpan.cn/ck8qbuNThRLY5 访问密码 1027

sumsear
sumsear   2016.09.23 19:08

这个问题已经解决了,其原因是因为neon最低支持的JDK是1.8 而我当前的JDK还1.7.0_51,所以,出现了这样的问题,这个问题困扰了我好久,看来有些时候寻找一个问题的线索真的不能只从一个地方入手

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!