我花了很多时间弄清楚如何使用 RSE 插件从本地 Eclipse 运行远程 Java 程序。
我能够使用 RSE 通过 eclipse 连接到我的远程机器,并且在Create Remote Project
对 eclipse 上的远程 maven 项目进行Remote System Explorer
透视后,我可以在 Java Perspective 下看到我的项目。
现在在Java Perspective下,当我继续创建一个构成Hello World
程序的简单java文件时,它会抛出一个错误,
我花了整整一天的时间来弄清楚问题出在哪里。如果有人以前遇到过这个问题,或者可以对这个问题有所了解,那将是非常可观的。
另外,如果您需要更多信息,请告诉我?
感谢 工作空间.metadata目录中.log的回溯
!ENTRY org.eclipse.core.jobs 4 2 2013-08-18 01:19:20.101 !MESSAGE An internal error
occurred during: "Launching abc". !STACK 0 java.lang.NullPointerException at
org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.getDefaultWorkingDirectory
(AbstractJavaLaunchConfigurationDelegate.java:995) at
org.eclipse.jdt.launching.AbstractJavaLaunchConfigurationDelegate.verifyWorkingDirectory(AbstractJavaLaunchConfigurationDelegate.java:684) at
org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:53) at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:855) at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:704) at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:1047) at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1251) at
org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
新空指针异常的 .log 回溯
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at org.eclipse.rse.ui.view.SystemTableViewProvider.getText(SystemTableViewProvider.java:221)
at org.eclipse.jface.viewers.DecoratingLabelProvider.getText(DecoratingLabelProvider.java:129)
at org.eclipse.rse.internal.ui.view.SystemDecoratingLabelProvider.getColumnText(SystemDecoratingLabelProvider.java:55)
at org.eclipse.jface.viewers.TableColumnViewerLabelProvider.update(TableColumnViewerLabelProvider.java:70)
at org.eclipse.jface.viewers.ViewerColumn.refresh(ViewerColumn.java:152)
at org.eclipse.jface.viewers.AbstractTableViewer.doUpdateItem(AbstractTableViewer.java:399)
at org.eclipse.jface.viewers.StructuredViewer$UpdateItemSafeRunnable.run(StructuredViewer.java:485)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.updateItem(StructuredViewer.java:2167)
at org.eclipse.jface.viewers.StructuredViewer.internalUpdate(StructuredViewer.java:2150)
at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:2089)
at org.eclipse.jface.viewers.ColumnViewer.update(ColumnViewer.java:554)
at org.eclipse.jface.viewers.StructuredViewer.update(StructuredViewer.java:2033)
at org.eclipse.jface.viewers.StructuredViewer.handleLabelProviderChanged(StructuredViewer.java:1191)
at org.eclipse.jface.viewers.ContentViewer$1.labelProviderChanged(ContentViewer.java:97)
at org.eclipse.ui.internal.decorators.DecoratorManager$1.run(DecoratorManager.java:430)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.decorators.DecoratorManager.fireListener(DecoratorManager.java:428)
at org.eclipse.ui.internal.decorators.DecorationScheduler$3.runInUIThread(DecorationScheduler.java:530)
at org.eclipse.ui.progress.UIJob$1.run(UIJob.java:95)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:135)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3946)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3623)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1053)