CreateProcess error=2, The system cannot find the file specified

前端 未结 5 953
既然无缘
既然无缘 2020-11-29 04:58

I am writing a program in java which would execute winrar and unzip a jar file for me placed in h:\\myjar.jar into the folder h:\\new. My java code

5条回答
  •  鱼传尺愫
    2020-11-29 05:25

    The dir you specified is a working directory of running process - it doesn't help to find executable. Use cmd /c winrar ... to run process looking for executable in PATH or try to use absolute path to winrar.

提交回复
热议问题