0
我的WGET命令不在我的32BIT JRE下工作,但在64位版本上它運行得很好。有任何想法嗎?wget命令在32位JRE不工作
java.io.IOException: Cannot run program "wget": CreateProcess error=2, cannot find file
String command = "wget --quiet -O \""+props.getProperty("xmlFolder")+""+rs.getString("software")+".xml\" \"ftp://"+props.getProperty("ftpUser")+":"+props.getProperty("ftpPasswort")+"@"+rs.getString("xmlPfad")+"\"";
System.out.println(command);
Process p = Runtime.getRuntime().exec(command);
p.waitFor();
它說'CreateProcess錯誤= 2,找不到文件。這是否給你一個提示? – devnull
根本不是,因爲當我在NetBeans中將我的JRE切換到64位時,它工作正常。 –
,我知道該文件存在。 –