发布网友
共2个回答
热心网友
展开1全部public static void pdfToSWF(String pdfPath,String swfPath) {
String cmd = "cmd /c pdf2swf.exe -t "+pdfPath+" -o "+swfPath+" -s flashversion=9";
String dir = ReadPropertis.getSWFToolsPath();
try {
java.lang.Runtime.getRuntime().exec(cmd,null,new File(dir));
} catch (IOException e) {
logger.error("创建SWF文件异常",e);
}
}
热心网友
java如何调用Linux下的top命令,top命令是top -n 1 >test.txt 问一下应该Runtime.getRuntime().exec("top -n 1>text.txt"); 或 test.sh: #!/