CreateProcess failure, error 2

原创 2015年01月30日 20:02:12

the general solution to the problem that port "5037" is used can simply be:

adb nodaemon server
netstat -ano|finstr "5037"//the port may not be the same
taskkill pid/0000 /f
adb start-server
 

in win7 64, when I run

adb start-server

but the result is  as follow

* daemon not running. starting it now on port 5037 *
   CreateProcess failure, error 2
   * failed to start daemon *
   error: cannot connect to daemon
this means that the port "5037" is unused, that's to say the solution is not the same as the former

the solution:

1.copy adb.exe toC:\Windows\SysWOW64

2.copy AdbWinApi.dll to C:\Windows\SysWOW64。

the error CreateProcess failure, error 2:

windows error code 2 means: 2 The system cannot find the file specified. ERROR_FILE_NOT_FOUND
and from the source code this is after a call to CreateProcess() and the file name is given by GetModuleFileName()

 in  AdbWinApi.dll, we can find the statement:
   If that doesn't work, you will have to extract the .dll to your system directory. By default, this is:  
<pre name="code" class="cpp">C:\Windows\System (Windows 95/98/Me)
C:\WINNT\System32 (Windows NT/2000)
C:\Windows\System32 (Windows XP, Vista, 7, win 8)



So, if you use a 64-bit version of Windows, you should also place the .dll in C:\Windows\SysWOW64\

CreateProcess error=2, 系统找不到指定的文件

今天在AndroidStudio中写了一个gradle插件,但是在执行的时候,报了一个错误: java.io.IOException: Cannot run program “E:/softwar...
  • pf_1308108803
  • pf_1308108803
  • 2017-10-30 14:52:23
  • 5457

windows下调用系统命令 CreateProcess error=2, ϵͳÕҲ»µ½ָ¶

代码如下String makeDir = "md " + dirName; Runtime.getRuntime().exec(makeDir);报错 CreateProcess error=2, ϵ...
  • javaofliang
  • javaofliang
  • 2016-08-18 09:38:46
  • 7228

解决IDEA的"Cannot run program "git.exe": CreateProcess error=2, 系统找不到指定的文件"错误

在官网下载的IDEA 会缺失git.exe配置路径,需要自己配置,导致不能clone github上的项目和提交代码到github,接下来首先你要下好 github window  点击打开链接 版在...
  • JavaLixy
  • JavaLixy
  • 2017-07-26 23:18:22
  • 8018

IDEA CreateProcess error=2

IDEA CreateProcess error=2
  • u013415189
  • u013415189
  • 2016-05-16 10:20:57
  • 1137

Cannot run program "git.exe": CreateProcess error=2的正确解决方法

在使用Android studio从git上check项目的时候报错cannot run program "git.exe":CreateProcess error=2 操作步骤如下: 下载 ...
  • u011465875
  • u011465875
  • 2016-07-13 10:29:54
  • 14928

【SVN】svn在IDEA报错CreateProcess error=2

问题描述 IntelliJ IDEA 13.1.2安装后,SVN checkout时候会出现如下错误: Cannot load supported formats: Cannot run prog...
  • wj9966
  • wj9966
  • 2018-01-16 12:00:04
  • 143

ProcessBuilder异常CreateProcess error=2, ϵͳÕҲ»µ½ָ¶

ProcessBuilder异常CreateProcess error=2, ϵͳÕҲ»µ½ָ¶
  • iaiti
  • iaiti
  • 2015-04-27 09:36:26
  • 23629

Error:(6, 0) CreateProcess error=2, 系统找不到指定的文件。 <a href="openFile:D:\phphub\phphub-android\app\build

Error:(6, 0) CreateProcess error=2, 系统找不到指定的文件。 Open File 指向了对应build.gradle中的下面这句话: def gitSha...
  • u010746364
  • u010746364
  • 2016-10-20 12:00:24
  • 6346

tomcat的cgi配置问题 程序的create process error 2

最近需要通过cgi调用本地c程序所以想到了cgi,出现如下错误 信息: cgi: Caught exception java.io.IOException: Cannot run program "c...
  • xiaoshubiao
  • xiaoshubiao
  • 2014-12-06 10:19:33
  • 1705

idea分享代码到svn失败 CreateProcess error=2

报错了— Cannot load supported formats: Cannot run program "svn": CreateProcess error=2解决方法file->setting...
  • chenjianandiyi
  • chenjianandiyi
  • 2016-10-19 15:50:56
  • 2215
收藏助手
不良信息举报
您举报文章:CreateProcess failure, error 2
举报原因:
原因补充:

(最多只允许输入30个字)