+1 Runtime.getRuntime().exec(command)调用系统命令,eg. File filePaths = new File(rootPath); StringBuffer command = new StringBuffer(); command.append(rootPath).append(File.separator).append("./xxx.sh"); Runtime rt = Runtime.getRuntime(); Process p = rt.exec(command.toString()); int exit = p.exitValue();
File filePaths = new File(rootPath);
StringBuffer command = new StringBuffer();
command.append(rootPath).append(File.separator).append("./xxx.sh");
Runtime rt = Runtime.getRuntime();
Process p = rt.exec(command.toString());
int exit = p.exitValue();
可是我现在的问题是,这个客户端机子比较特殊(不是PC),内存比较小,已经没有安装JRE的空间了,
如果我在JSP页面里写了JAVA代码去调用linux命令,应该不能解析吧
可是我现在的问题是,这个客户端机子比较特殊(不是PC),内存比较小,已经没有安装JRE的空间了,
如果我在JSP页面里写了JAVA代码去调用linux命令,应该不能解析吧