api - Opening file from Java -


I need to give instructions to the OS to open the file with the default program used for that file type. In fact, that is, that file was double clicked by the user under Windows.

The purpose is, that is, "Your PDF file was generated. Click here to open it".

Platform-independent, if possible ...

I do not know the exact words for what I want, so if a tag can update I would appreciate it most;)

You need class and especially the method.

Launches the associated application to open the file. If the specified file is a directory, then the file manager of the existing platform is launched to open it.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -