我想在创建后自动打开pdf。我已经编写了以下代码。 但是它给出了以下错误:
java.io.IOException: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
代码:
Runtime load = Runtime.getRuntime();
load.exec("C:\\Program Files (x86)\\Foxit Software\\Foxit Reader\\Foxit Reader.exe"+
" D:\\Movie\\eclipse-jee-juno-win32-x86_64\\eclipse\\Webcontent\\export\\pdf_exported_2014_05_08_080211.pdf");