public class Test { public static void main(String[] args) throws IOException { String path = "D:/人在旅途/潭柘寺/P1020614.JPG"; Runtime.getRuntime().exec("cmd /c start " + path); }} 有时需要在web客户端打开一些文档,执行这个命令就可以打开,好像需要下载到本地才行