Cocos code ide 无法设置python

用的cocos code ide版本为cocos-code-ide-win32-1.0.0-rc1,windows xp环境

新建cocos2d-js工程后,设置js引擎位置,接下来提示没有python

点击setting python,出现如下

点击ok,出现如下设置界面

无法设置python路径,只能退出。请wen怎么解决这个问题?

查看cocos code ide的log找到问题了,是软件用了where.exe,xp没有此工具,vista和win7才有,希望开发组注意一下这个问题。

2014-09-17 10:08:23 - runCommand : C:\Python27\python.exe -V
2014-09-17 10:08:23 - runCommand : where python
2014-09-17 10:08:23 - runCommand Exception
java.io.IOException: Cannot run program “where”: CreateProcess error=2, 系统找不到指定的文件。
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:450)
at org.ccdt.common.utils.CommandHelper.runCommand(CommandHelper.java:95)
at org.ccdt.common.utils.CommandHelper.executeSynchronous(CommandHelper.java:64)
at org.ccdt.common.CommonPython.readPythonPathFromPath(CommonPython.java:129)
at org.ccdt.common.CommonPython.loadSystemPython(CommonPython.java:109)
at org.ccdt.common.ui.preferences.Startup.loadPython(Startup.java:76)
at org.ccdt.common.ui.preferences.Startup.earlyStartup(Startup.java:22)
at org.eclipse.ui.internal.EarlyStartupRunnable.runEarlyStartup(EarlyStartupRunnable.java:87)
at org.eclipse.ui.internal.EarlyStartupRunnable.run(EarlyStartupRunnable.java:66)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.Workbench$55.run(Workbench.java:2555)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: java.io.IOException: CreateProcess error=2, 系统找不到指定的文件。
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:386)
at java.lang.ProcessImpl.start(ProcessImpl.java:137)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
… 13 more
2014-09-17 10:08:57 - stop preview service

暂时的解决方法是找个xp可以用的where.exe放到C:\Windows\system32文件夹下,下载链接:
http://dllexedown.com/bbs/board.php?bo_table=05_200332&wr_id=3262

其他版本的where.exe下载链接:
http://dllexedown.com/bbs/search.php?sfl=wr_subject&sop=and&mininum=0&maxnum=10000&stx=where.exe

放入后创建工程成功。希望对同样遇到问题的人有帮助。

xp 系统上还有其他的问题,连微软都不维护的系统我们就不花费时间在上面了吧