How to open a file with the default associated program

You can use Desktop.getDesktop().open(File file). See the following question for other options: “[Java] How to open user system preffered editor for given file?

Leave a Comment