2017-10-21 85 views
0

我是Linux新手(一般來說,但Mint具體),但能夠混淆得到eclipse打開(Java版本openjdk版本「9內部」),運行Eclipse Oxygen1 。一個。 (我不得不最終編輯eclipse.ini,如其他一些帖子中提到的那樣,以啓動應用程序(例如:刪除所有模塊等)Linux/eclipse氧氣/項目錯誤

程序現在開始正常,但出現以下錯誤創建項目時:(見下文)

我已經嘗試創建新的工作區,沒有任何的運氣。我試圖創建一個Java9項目,但也嘗試只是爲了衡量創建Java8項目..

任何建議或建議?

在此先感謝任何/所有建議。 (PS:pr obably值得一提我的核心體驗是Windows,我已經配置在新的Windows氧氣/ Java9 10 OS表現爲預期..)

Exception:java.lang.NullPointerException: null 
    at org.eclipse.jdt.internal.compiler.util.JRTUtil.walkModuleImage(JRTUtil.java:146) 
    at org.eclipse.jdt.internal.core.JavaProject.loadModulesInJimage(JavaProject.java:876) 
    at org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(JavaProject.java:680) 
    at org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(JavaProject.java:963) 
    at org.eclipse.jdt.internal.core.JavaProject.computePackageFragmentRoots(JavaProject.java:922) 
    at org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:477) 
    at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:259) 
    at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:583) 
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:320) 
    at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:306) 
    at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:261) 
    at org.eclipse.jdt.internal.core.JavaProject.getPackageFragmentRoots(JavaProject.java:2143) 
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.getPackageFragmentRoots(PackageExplorerContentProvider.java:308) 
    at org.eclipse.jdt.ui.StandardJavaElementContentProvider.getChildren(StandardJavaElementContentProvider.java:180) 
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerContentProvider.getChildren(PackageExplorerContentProvider.java:295) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1363) 
    at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:341) 
    at org.eclipse.jdt.internal.ui.viewsupport.ProblemTreeViewer.getFilteredChildren(ProblemTreeViewer.java:251) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:618) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.lambda$0(AbstractTreeViewer.java:814) 
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:792) 
    at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:595) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:763) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.setExpandedState(AbstractTreeViewer.java:2459) 
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleDoubleClick(PackageExplorerActionGroup.java:355) 
    at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$3.doubleClick(PackageExplorerPart.java:518) 
    at org.eclipse.jface.viewers.StructuredViewer$1.run(StructuredViewer.java:831) 
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 
    at org.eclipse.ui.internal.JFaceUtil.lambda$0(JFaceUtil.java:44) 
    at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:173) 
    at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(StructuredViewer.java:828) 
    at org.eclipse.jface.viewers.AbstractTreeViewer.handleDoubleSelect(AbstractTreeViewer.java:1459) 
    at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(StructuredViewer.java:1258) 
    at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(OpenStrategy.java:249) 
    at org.eclipse.jface.util.OpenStrategy.access$0(OpenStrategy.java:247) 
    at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:306) 
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:86) 
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5268) 
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1348) 
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4522) 
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4107) 
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1150) 
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336) 
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1039) 
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:153) 
    at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:680) 
    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 sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:531) 
    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) 
+0

更新:嘗試從Java.com(9.0.1 for linux)安裝稍微更新的JDK。我能夠在Preferenced - > Java - > Installed JRE下注冊爲默認/已安裝的JRE,並試圖創建一個新項目,但仍然無法工作。另外我試着指向Eclipse.ini文件中的這個特定的java安裝,它在'開始'時會崩潰,但是在選擇一個工作空間時崩潰了,包括選擇一個新的...我想這可能是一個特定的「Mint支持「 問題? – richjavadev

回答

1

固定! 當使用Eclipse的Oomph安裝程序時,需要指向新安裝的JDK9.0.1 ....出於任何原因,當前/默認情況下的「openJDK 9-Interal」不起作用... 如果有其他人正在努力在一個類似的問題上在Mint上設置eclipse,我建議從java.com獲得乾淨/新鮮的JDK,並仔細配置Oomph安裝程序(確保它們都是64位),並將其指向此JDK而不是缺省值..