我正在尝试在eclipse中的classpath中添加一个新变量。右键单击项目 - >构建路径 - >配置构建路径 - >库选项卡。 从右侧按钮面板,我选择了Add Variable - >配置变量 - > New.I我正在添加一个新变量,然后eclipse给出一个弹出窗口,要求重建以使更改生效。当我单击OK时,我得到错误'无法设置类路径变量。 。查看错误日志了解更多详细信息'。我签入了错误日志,我发现:'内部错误'。双重打击它显示以下异常: Java模型异常:核心异常[代码0]未定义PWMATRIX_HOME变量! 在org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2887) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1877) 在org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2798) 在org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2674) 在org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2838) 在org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1943) 在org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:461) 在org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:258) 在org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:518) 在org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241) 在org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:196) 在org.eclipse.jdt.internal.core.JavaProject.getPackageFragmentRoots(JavaProject.java:1831) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.getSelectedPackageFragmentRoot(LibrariesWorkbookPage.java:369) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.updateEnabledState(LibrariesWorkbookPage.java:604) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.libaryPageSelectionChanged(LibrariesWorkbookPage.java:597) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.access $ 1(LibrariesWorkbookPage.java:596) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage $ LibrariesAdapter.selectionChanged(LibrariesWorkbookPage.java:203) at org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDialogField.doListSelected(TreeListDialogField.java:924) at org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDialogField $ TreeViewerAdapter.selectionChanged(TreeListDialogField.java:909) 在org.eclipse.jface.viewers.Viewer $ 2.run(Viewer.java:164) 在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 在org.eclipse.ui.internal.JFaceUtil $ 1.run(JFaceUtil.java:49) 在org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) 在org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) 在org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188) 在org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211) 在org.eclipse.jface.viewers.StructuredViewer $ 4.widgetSelected(StructuredViewer.java:1241) 在org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239) 在org.eclipse.jface.util.OpenStrategy.access $ 4(OpenStrategy.java:233) 在org.eclipse.jface.util.OpenStrategy $ 1.handleEvent(OpenStrategy.java:403) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) 在org.eclipse.jface.window.Window.runEventLoop(Window.java:825) 在org.eclipse.jface.window.Window.open(Window.java:801) 在org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.ConfigureBuildPathAction.run(ConfigureBuildPathAction.java:88) 在org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributionItem.java:411) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) 在org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 在org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java:2494) 在org.eclipse.ui.internal.Workbench $ 7.run(Workbench.java:674) 在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597) 在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 在org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 在org.eclipse.equinox.launcher.Main.run(Main.java:1410) 在org.eclipse.equinox.launcher.Main.main(Main.java:1386) 引起:org.eclipse.core.runtime.CoreException:未定义PWMATRIX_HOME变量! at com.ssc.cdt.eclipse.initializers.WSFContainerInitializer.getExtraAttrubutes(WSFContainerInitializer.java:146) 在com.ssc.cdt.eclipse.initializers.WSFContainerInitializer.getCloudFrameworkJars(WSFContainerInitializer.java:178) 在com.ssc.cdt.eclipse.initializers.WSFContainerInitializer.initialize(WSFContainerInitializer.java:188) 在org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2863) at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1877) 在org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:2798) 在org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2674) 在org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2838) 在org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1943) 在org.eclipse.jdt.internal.core.JavaProject.buildStructure(JavaProject.java:461) 在org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:258) 在org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:518) 在org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:255) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:241) 在org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:196) 在org.eclipse.jdt.internal.core.JavaProject.getPackageFragmentRoots(JavaProject.java:1831) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.getSelectedPackageFragmentRoot(LibrariesWorkbookPage.java:369) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.updateEnabledState(LibrariesWorkbookPage.java:604) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.libaryPageSelectionChanged(LibrariesWorkbookPage.java:597) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage.access $ 1(LibrariesWorkbookPage.java:596) at org.eclipse.jdt.internal.ui.wizards.buildpaths.LibrariesWorkbookPage $ LibrariesAdapter.selectionChanged(LibrariesWorkbookPage.java:203) at org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDialogField.doListSelected(TreeListDialogField.java:924) at org.eclipse.jdt.internal.ui.wizards.dialogfields.TreeListDialogField $ TreeViewerAdapter.selectionChanged(TreeListDialogField.java:909) 在org.eclipse.jface.viewers.Viewer $ 2.run(Viewer.java:164) 在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) 在org.eclipse.ui.internal.JFaceUtil $ 1.run(JFaceUtil.java:49) 在org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) 在org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:162) 在org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:2188) 在org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1211) 在org.eclipse.jface.viewers.StructuredViewer $ 4.widgetSelected(StructuredViewer.java:1241) 在org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:239) 在org.eclipse.jface.util.OpenStrategy.access $ 4(OpenStrategy.java:233) 在org.eclipse.jface.util.OpenStrategy $ 1.handleEvent(OpenStrategy.java:403) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) 在org.eclipse.jface.window.Window.runEventLoop(Window.java:825) 在org.eclipse.jface.window.Window.open(Window.java:801) 在org.eclipse.jdt.internal.ui.wizards.buildpaths.newsourcepage.ConfigureBuildPathAction.run(ConfigureBuildPathAction.java:88) 在org.eclipse.jface.action.Action.runWithEvent(Action.java:498) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) at org.eclipse.jface.action.ActionContributionItem.access $ 2(ActionContributionItem.java:501) at org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(ActionContributionItem.java:411) 在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) 在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053) 在org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4165) 在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3754) 在org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696) 在org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660) 在org.eclipse.ui.internal.Workbench.access $ 4(Workbench.java:2494) 在org.eclipse.ui.internal.Workbench $ 7.run(Workbench.java:674) 在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) 在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667) 在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) 在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123) 在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) 在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) 在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) 在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) 在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 在java.lang.reflect.Method.invoke(Method.java:597) 在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622) 在org.eclipse.equinox.launcher.Main.basicRun(Main.java:577) 在org.eclipse.equinox.launcher.Main.run(Main.java:1410) 在org.eclipse.equinox.launcher.Main.main(Main.java:1386) 我无法理解为什么会发生这些异常以及如何解决它。 期待解决方案。谢谢。