选择工作空间路径后,Eclipse不会启动

时间:2017-09-30 02:05:13

标签: java eclipse

我安装了Eclipse IDE并启动它,但是当我选择我的工作区路径时它给了我一个错误,我在下面包含了日志文件。

我尝试了什么

我找到的一些解决方案告诉我要运行

  

eclipse.exe -clean

但那并没有奏效。另一个解决方案建议清理.snap文件,但不存在任何问题。我还删除了/meta文件夹,但没有成功。

这是上面提到的日志文件:

  

!会话2017-09-30 05:19:57.576   ----------------------------------------------- eclipse.buildId = 4.7.1.M20170906-1700 java.version = 9 java.vendor = Oracle   公司BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,   NL = en_US框架参数:-product   org.eclipse.epp.package.java.product命令行参数:-os   win32 -ws win32 -arch x86_64 -product   org.eclipse.epp.package.java.product

     

!ENTRY org.eclipse.osgi 4 0 2017-09-30 05:20:08.956!MESSAGE   应用程序错误!STACK 1 org.eclipse.e4.core.di.InjectionException:   java.lang.NoClassDefFoundError:javax / annotation / PostConstruct at   org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)     在   org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)     在   org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)     在   org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)     在   org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)     在   org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)     在org.eclipse.ui.internal.Workbench.lambda $ 3(Workbench.java:614)at   org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)     在   org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)     在   org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)     在   org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)     在   org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)     在   java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(母语   方法)at   java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke(未知   来源)at   java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(未知   来自java.base / java.lang.reflect.Method.invoke(未知来源)     在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)     在org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)at   org.eclipse.equinox.launcher.Main.run(Main.java:1499)at   org.eclipse.equinox.launcher.Main.main(Main.java:1472)引起:   java.lang.NoClassDefFoundError:javax / annotation / PostConstruct at   org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)     在   org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)     ... 23更多引起:java.lang.ClassNotFoundException:   无法找到javax.annotation.PostConstruct   org.eclipse.e4.core.di_1.6.100.v20170421-1418 at   org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)     在   org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)     at java.base / java.lang.ClassLoader.loadClass(Unknown Source)... 25   更

     

!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-09-30 05:20:08.972   !MESSAGE FrameworkEvent ERROR!STACK 0 java.lang.NoClassDefFoundError:   javax / annotation / PreDestroy at   org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)     在   org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)     在   org.eclipse.e4.core.internal.contexts.ContextObjectSupplier $ ContextInjectionListener.update(ContextObjectSupplier.java:78)     在   org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)     在   org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)     在   org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)     在   org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)     在   org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)     在   org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)     在   org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)     在   org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)     在   org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)     在   org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)     在   org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)     在   org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)     在org.eclipse.osgi.container.Module.publishEvent(Module.java:476)     在org.eclipse.osgi.container.Module.doStop(Module.java:634)at   org.eclipse.osgi.container.Module.stop(Module.java:498)at   org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)     在   org.eclipse.osgi.internal.framework.EquinoxBundle $ SystemBundle $ EquinoxSystemModule $ 1.run(EquinoxBundle.java:165)     在java.base / java.lang.Thread.run(未知来源)引起:   java.lang.ClassNotFoundException:javax.annotation.PreDestroy不能   可以在org.eclipse.e4.core.di_1.6.100.v20170421-1418找到   org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)     在   org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)     在java.base / java.lang.ClassLoader.loadClass(未知来源)... 21   更多!会话2017-09-30 05:28:12.431   ----------------------------------------------- eclipse.buildId = 4.7.1.M20170906-1700 java.version = 9 java.vendor = Oracle   公司BootLoader常量:OS = win32,ARCH = x86_64,WS = win32,   NL = en_US框架参数:-product   org.eclipse.epp.package.java.product命令行参数:-os   win32 -ws win32 -arch x86_64 -product   org.eclipse.epp.package.java.product

     

!ENTRY org.eclipse.osgi 4 0 2017-09-30 05:28:36.887!MESSAGE   应用程序错误!STACK 1 org.eclipse.e4.core.di.InjectionException:   java.lang.NoClassDefFoundError:javax / annotation / PostConstruct at   org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:410)     在   org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)     在   org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)     在   org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)     在   org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)     在   org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)     在org.eclipse.ui.internal.Workbench.lambda $ 3(Workbench.java:614)at   org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)     在   org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)     在   org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)     在   org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)     在   org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)     在   org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)     在   org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)     在   java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(母语   方法)at   java.base / jdk.internal.reflect.NativeMethodAccessorImpl.invoke(未知   来源)at   java.base / jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(未知   来自java.base / java.lang.reflect.Method.invoke(未知来源)     在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)     在org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)at   org.eclipse.equinox.launcher.Main.run(Main.java:1499)at   org.eclipse.equinox.launcher.Main.main(Main.java:1472)引起:   java.lang.NoClassDefFoundError:javax / annotation / PostConstruct at   org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)     在   org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)     ... 23更多引起:java.lang.ClassNotFoundException:   无法找到javax.annotation.PostConstruct   org.eclipse.e4.core.di_1.6.100.v20170421-1418 at   org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)     在   org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)     at java.base / java.lang.ClassLoader.loadClass(Unknown Source)... 25   更

     

!ENTRY org.eclipse.e4.ui.workbench 4 0 2017-09-30 05:28:36.897   !MESSAGE FrameworkEvent ERROR!STACK 0 java.lang.NoClassDefFoundError:   javax / annotation / PreDestroy at   org.eclipse.e4.core.internal.di.InjectorImpl.disposed(InjectorImpl.java:450)     在   org.eclipse.e4.core.internal.di.Requestor.disposed(Requestor.java:156)     在   org.eclipse.e4.core.internal.contexts.ContextObjectSupplier $ ContextInjectionListener.update(ContextObjectSupplier.java:78)     在   org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:111)     在   org.eclipse.e4.core.internal.contexts.TrackableComputationExt.handleInvalid(TrackableComputationExt.java:74)     在   org.eclipse.e4.core.internal.contexts.EclipseContext.dispose(EclipseContext.java:178)     在   org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.dispose(EclipseContextOSGi.java:99)     在   org.eclipse.e4.core.internal.contexts.osgi.EclipseContextOSGi.bundleChanged(EclipseContextOSGi.java:141)     在   org.eclipse.osgi.internal.framework.BundleContextImpl.dispatchEvent(BundleContextImpl.java:908)     在   org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230)     在   org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148)     在   org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEventPrivileged(EquinoxEventPublisher.java:213)     在   org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:120)     在   org.eclipse.osgi.internal.framework.EquinoxEventPublisher.publishBundleEvent(EquinoxEventPublisher.java:112)     在   org.eclipse.osgi.internal.framework.EquinoxContainerAdaptor.publishModuleEvent(EquinoxContainerAdaptor.java:168)     在org.eclipse.osgi.container.Module.publishEvent(Module.java:476)     在org.eclipse.osgi.container.Module.doStop(Module.java:634)at   org.eclipse.osgi.container.Module.stop(Module.java:498)at   org.eclipse.osgi.container.SystemModule.stop(SystemModule.java:202)     在   org.eclipse.osgi.internal.framework.EquinoxBundle $ SystemBundle $ EquinoxSystemModule $ 1.run(EquinoxBundle.java:165)     在java.base / java.lang.Thread.run(未知来源)引起:   java.lang.ClassNotFoundException:javax.annotation.PreDestroy不能   可以在org.eclipse.e4.core.di_1.6.100.v20170421-1418找到   org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)     在   org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)     在   org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)     在java.base / java.lang.ClassLoader.loadClass(未知来源)... 21   更

0 个答案:

没有答案