尝试使用Desktop.open()而不是Desktop.edit():
Desktop dt = Desktop.getDesktop();dt.open(new File(this.outputFilePath));
如果Desktop.open()不可用,则可以使用Windows文件关联:
Process p = Runtime.getRuntime() .exec("rundll32 url.dll,FileProtocolHandler " + this.outputFilePath);


