我正在使用 Java SE 10 的 64 位系统上运行 Widows 7 Professional。我下载了 Overture-2.6.2-win32.win32x86-64.zip 并将其解压缩到 c: 下,然后单击 Overture 应用程序。它开始并要求提供工作区路径。我采用了默认值,但它失败了。日志文件显示了一堆 Java 错误,包括 ClassNotFound。我将 Overture 文件夹移动到 Java 文件夹所在的 Program Files 中。又失败了。Overture 手册表明下载内容包括 Eclipse。我删除了当前的 Eclipse 版本,以防出现问题。还是失败了。我究竟做错了什么?
问问题
329 次
2 回答
0
Overture 下载网页有文字“(需要 Java SE 8)”,我认为它是指 8 或更高版本。他们的意思是只有 8 个可以工作。我安装了 Java 10(当前版本)。当我删除 Java 10 并安装 Java 8 Overture 时加载。我希望这个答案可以节省其他人我浪费的时间。
于 2018-10-16T13:52:51.573 回答
0
我尝试在 Ubuntu 上使用 Java 10 运行 Overture 2.6.4 候选版本(我将于 2018 年 10 月 19 日发布),我收到如下所示的错误。这个错误似乎是由 Overture 构建的 Eclipse 版本(氧气)引起的。按照这里的说明https://wiki.eclipse.org/Configure_Eclipse_for_Java_9我能够解决这个问题。特别是通过添加--add-modules=ALL-SYSTEM
到 Overture.ini 文件中。这能解决你的问题吗?尽管该页面最初旨在涵盖 Java 9 配置,但这些建议似乎仍然有效。
eclipse.buildId=unknown
java.version=10.0.2
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64
!ENTRY org.eclipse.osgi 4 0 2018-10-18 11:15:34.628
!MESSAGE Application error
!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)
at org.eclipse.e4.core.internal.di.InjectorImpl.make(InjectorImpl.java:318)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.make(ContextInjectionFactory.java:162)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultHeadlessContext(E4Application.java:491)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createDefaultContext(E4Application.java:505)
at org.eclipse.e4.ui.internal.workbench.swt.E4Application.createE4Workbench(E4Application.java:204)
at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:614)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:594)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:151)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
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 java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
at 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)
Caused by: java.lang.NoClassDefFoundError: javax/annotation/PostConstruct
at org.eclipse.e4.core.internal.di.InjectorImpl.inject(InjectorImpl.java:124)
at org.eclipse.e4.core.internal.di.InjectorImpl.internalMake(InjectorImpl.java:399)
... 23 more
Caused by: java.lang.ClassNotFoundException: javax.annotation.PostConstruct cannot be found by org.eclipse.e4.core.di_1.6.100.v20170421-1418
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:433)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:395)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:387)
at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:150)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:499)
... 25 more
!ENTRY org.eclipse.e4.ui.workbench 4 0 2018-10-18 11:15:34.644
!MESSAGE FrameworkEvent ERROR
!STACK 0
于 2018-10-18T09:40:40.867 回答