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

Oracle Community | 807553 | 1 decade ago
  1. 0

    OS level calls in Java.. example.

    Oracle Community | 1 decade ago | 807553
    java.io.IOException: CreateProcess: copy c:\temp\test.txt c:\temp\test2.txt error=2
  2. 0

    System calls

    Oracle Community | 1 decade ago | 807553
    java.io.IOException: CreateProcess: copy c:\temp\test.txt c:\temp\test2.txt error=2
  3. 0

    Java Runtime.getRuntime().exec on Windows error

    Stack Overflow | 5 years ago | John R
    java.io.IOException: Cannot run program "nmap -sP 192.168.1.0/24": CreateProcess error=2, The system cannot find the file specified
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Getting an error while running Runtime.exec method in java

    Stack Overflow | 8 months ago | priyam singh
    java.io.IOException: Cannot run program "priyam.bat" (in directory "D:\"): CreateProcess error=2, The system cannot find the file specified
  6. 0

    Executing DOS commands in Java

    Oracle Community | 1 decade ago | 807597
    java.io.IOException: CreateProcess: dir error=2

  1. serious2monkeys 1 times, last 2 weeks ago
  2. Handemelindo 6 times, last 1 month ago
  3. kid 5 times, last 2 months ago
  4. rp 2 times, last 2 months ago
  5. jk 1 times, last 5 months ago
3 more registered users
75 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.IOException

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

    at java.lang.Win32Process.create()
  2. Java RT
    Runtime.exec
    1. java.lang.Win32Process.create(Native Method)
    2. java.lang.Win32Process.<init>(Win32Process.java:61)
    3. java.lang.Runtime.execInternal(Native Method)
    4. java.lang.Runtime.exec(Runtime.java:546)
    5. java.lang.Runtime.exec(Runtime.java:413)
    6. java.lang.Runtime.exec(Runtime.java:356)
    7. java.lang.Runtime.exec(Runtime.java:320)
    7 frames
  3. Unknown
    Test.main
    1. Test.main(Test.java:7)
    1 frame