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位时,它工作正常。 –
,我知道该文件存在。 –