java.io.IOException: CreateProcess: copy c:\temp\test.txt c:\temp\test2.txt error=2

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

You might be using the wrong way to add commands to the command line. Try using commandDownloader.add("command");

,
Expert tip

If you're trying to make a splash screen, check this tutorial: https://goo.gl/zQyCYe

Solutions on the web

via Oracle Community by 807553, 1 year ago
CreateProcess: copy c:\temp\test.txt c:\temp\test2.txt error=2
via Oracle Community by 807553, 1 year ago
CreateProcess: copy c:\temp\test.txt c:\temp\test2.txt error=2
via Oracle Community by 843790, 1 year ago
CreateProcess: C:\windows\command /c copy C:\pbx\mantra\vvvvv.mp3 C:\rrr\mantra \mantra.mp3 error=2
via Coderanch by ranch ravi, 1 year ago
CreateProcess: C:\windows\command /c copy C:\pbx\mantra\vvvvv.mp3 C:\rrr\mantra \mantra.mp3 error=2
via Oracle Community by 843804, 1 year ago
CreateProcess: C:\ error=3
via Coderanch by jungil, 1 year ago
CreateProcess: command /c cls er ror=2
java.io.IOException: CreateProcess: copy c:\temp\test.txt c:\temp\test2.txt error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.(Win32Process.java:61)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:546)
at java.lang.Runtime.exec(Runtime.java:413)
at java.lang.Runtime.exec(Runtime.java:356)
at java.lang.Runtime.exec(Runtime.java:320)
at undefined.Test.main(Test.java:7)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
88 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.