我想知道如何通过java打开文件.
我可以像这样打开Office
try { Runtime runTime = Runtime.getRuntime(); Process process = runTime.exec("C:\\Program Files\\Microsoft Office\\Office15\\EXCEL.EXE"); } catch (IOException e) { e.printStackTrace(); }
但我想直接从java打开文件.