eclipse CreateProcess error=87, 参数不正确
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6970995/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
CreateProcess error=87, The parameter is incorrect
提问by Rakesh
While building with ant, I am getting the following error:
使用 ant 构建时,出现以下错误:
java.io.IOException: Cannot run program "D:\Tools\Java\jdk1.6.0_12\jre\bin\java.exe": (my Project & its path)Error: CreateProcess error=87, The parameter is incorrect
java.io.IOException: 无法运行程序 "D:\Tools\Java\jdk1.6.0_12\jre\bin\java.exe": (my Project & its path)Error: CreateProcess error=87, 参数不正确
Any idea how to fix it?
知道如何修复它吗?
采纳答案by Rakesh
I found out the reason for this error,it is pointing out only to the res folder,there is an image folder inside it,it point exactly to it,I am not getting the error.
我找到了这个错误的原因,它只指向 res 文件夹,里面有一个图像文件夹,它正好指向它,我没有收到错误。
Regards Rakesh shankar.P
问候 Rakesh shankar.P
回答by Jason B-H
I received this error as well, but for different cases than what is listed. I get this when attempting to execute JUnit tests in an Eclipse project whose workspace path is too long; moving the project to a shorter pathresolved this issue.
我也收到了这个错误,但与列出的情况不同。尝试在工作区路径太长的 Eclipse 项目中执行 JUnit 测试时出现此问题;将项目移动到更短的路径解决了这个问题。
Cannot run program "C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.exe": (Long Project Path Path)Error: CreateProcess error=87, The parameter is incorrect
无法运行程序 "C:\Program Files\Java\jdk1.6.0_26\jre\bin\java.exe": ( Long Project Path Path)Error: CreateProcess error=87, 参数不正确
回答by johncorner06
In my case, removing duplicate jars solved the problem.
就我而言,删除重复的罐子解决了这个问题。
回答by Badri
I faced the same problem when launching my GWT application in IBM RAD.
在 IBM RAD 中启动 GWT 应用程序时,我遇到了同样的问题。
I tried removing duplicate jars, but it didn't solved the issue.
我尝试删除重复的罐子,但没有解决问题。
I have changed JRE in the project build path to point to the one which is installed in my machine (C://Program Files->java->...). Earlier it was pointing to the JRE in IBM folder(C://Program Files->IBM->SDP->JDK....)
我已将项目构建路径中的 JRE 更改为指向我机器中安装的 JRE(C://Program Files->java->...)。早些时候它指向 IBM 文件夹中的 JRE(C://Program Files->IBM->SDP->JDK ....)
It worked for me.
它对我有用。
回答by bitoiu
My scenario will probably be one no one else will find. I was getting the error in IntelliJ.
我的情况可能是其他人找不到的。我在 IntelliJ 中遇到错误。
After spending a long time on the web I found that I had a =
in my Environment Variables, although none was set. This was the residue of a ENV Variable I had set previously but deleted. For some reason this non-editable field contained that =
and the only way I could remove it was by adding a dummy ENV property and removing it again.
在网上花了很长时间后,我发现=
我的环境变量中有一个,尽管没有设置。这是我之前设置但删除的 ENV 变量的残余。出于某种原因,这个不可编辑的字段包含它=
,我可以删除它的唯一方法是添加一个虚拟的 ENV 属性并再次删除它。
After I removed it, it worked.
我删除它后,它起作用了。
回答by Ralph
I'm encountering the same issue(at least the error and description). All SO search and google search points to the bug stated at https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193and http://www.eclipse.org/forums/index.php?t=rview&goto=494195&th=156565.
我遇到了同样的问题(至少是错误和描述)。所有 SO 搜索和谷歌搜索都指向https://bugs.eclipse.org/bugs/show_bug.cgi?id=327193和http://www.eclipse.org/forums/index.php?t= 中所述的错误rview&goto=494195&th=156565。
But when I try a simple change to launch the application, it works.
但是当我尝试一个简单的更改来启动应用程序时,它就起作用了。
Previously, I'm using the way of "right click -> debug -> Java application" to start the application, and got the error.
之前我是用“右键->调试->Java应用程序”的方式启动应用程序,报错。
I changed the way to manually add a debug configuration in menu "Debug -> Configurations", specify the class you want. Then click 'Debug' in the debug configurations dialog. It works...
我改变了在菜单“调试->配置”中手动添加调试配置的方式,指定你想要的类。然后在调试配置对话框中单击“调试”。有用...
Note that I'm using a customized IDE based on Eclipse 3.6.2.
请注意,我使用的是基于 Eclipse 3.6.2 的自定义 IDE。