这是第一次出现这个错误。我在 Eclipse 3.5 中使用 Cygwin,我的 Path 变量设置为:%CommonProgramFiles%\Microsoft Shared\Windows Live;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files\Apache Ant\bin;C:\Program Files\SVN\bin;C:\Program Files\Java\jdk1.6.0_18\bin;C:\Users\Mohit\Developer\AndroidSDK\tools;C:\Program Files\QuickTime\QTSystem\;C:\cygwin\bin
注意 C:\cygwin\bin
在我的道路上。 make.exe 是我的 Cygwin bin。所以我认为问题不在于我的系统,而在于我的项目。但我找不到任何问题。有什么建议吗?
最佳答案
使用Process Explorer查看 Eclipse 进程中的 PATH 环境变量。它可能会在内部更改其 PATH——如果是这种情况,您将需要了解如何配置 Eclipse 以便正确设置其 PATH。
如果您发现 C:\cygwin\bin
不在 Eclipse 的 PATH 中,并且您最近将其添加到您的 PATH 中,则需要关闭并重新启动 Eclipse 以使更改生效影响。
如果您仍然无法理解,请尝试使用 Process Monitor使用 Eclipse.exe 的过滤器来获取它正在尝试执行的所有操作的长而详细的列表。查找失败的 CreateProcess()
调用,看看您是否可以了解更多信息。
关于无法运行程序 "make": The system cannot find the file specified?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3220044/