Java error in making file through console
问题 I want to make a file though the cmd in java using this code Runtime.getRuntime().exec("mkdir C:\\Users\\Nick\\test"); and i get this annoying error: Exception in thread "main" java.io.IOException: Cannot run program "mkdir": CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at java.lang.Runtime.exec(Unknown Source) at LFID.main(LFID.java:11)