当前位置: 代码迷 >> Eclipse >> Eclipse运行hello world 出错 , 新手求教~解决办法
  详细解决方案

Eclipse运行hello world 出错 , 新手求教~解决办法

热度:80   发布时间:2016-04-23 13:48:50.0
Eclipse运行hello world 出错 , 新手求教~
程序我就不贴出来了 就是最简单的hello world 。
我以前也建过类似的测试程序,在Eclipse下直接 run as --》 java application 都行的 今天突然就报错了,估计是Eclipse的原因。 我在命令行下是可以运行的

java.io.IOException: Cannot run program "D:\Program Files\Java\jdk1.6.0_18\bin\javaw.exe" (in directory "E:\workspace_wap\WAP\BIOP_WAP\components\wapServiceServer"): CreateProcess error=87, ²ÎÊý²»
at java.lang.ProcessBuilder.start(ProcessBuilder.java:459)
at java.lang.Runtime.exec(Runtime.java:593)
at org.eclipse.debug.core.DebugPlugin.exec(DebugPlugin.java:805)
at org.eclipse.jdt.launching.AbstractVMRunner.exec(AbstractVMRunner.java:70)
at org.eclipse.jdt.internal.launching.StandardVMRunner.run(StandardVMRunner.java:317)
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:101)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:853)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:866)
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1069)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.io.IOException: CreateProcess error=87, ²ÎÊý²»
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(ProcessImpl.java:81)
at java.lang.ProcessImpl.start(ProcessImpl.java:30)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:452)
... 10 more


------解决方案--------------------
E:\workspace_wap\WAP\BIOP_WAP\components\wapServiceServer
路径换过吧?
------解决方案--------------------
新建workspace试试?
------解决方案--------------------
找到 C:\google\appengine-java-sdk-1.3.1\config\user\ant-macros.xml

将line 102

<fileset dir="@{war}/WEB-INF/classes" includes="**/*.class"/>

改为

 <fileset dir="@{war}/WEB-INF/classes" includes="**/*JDO.class"/>
  相关解决方案