[root@localhost ~]# java -jar newSysInfo.jar
Exception in thread "main" java.io.IOException: Cannot run program "wmic": java.io.IOException: error=2, No such file or directory
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at com.kingzheng.Test1.main(Test1.java:9)
Caused by: java.io.IOException: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 4 more
有没有同学帮忙看一下,在线等待 |
|