I have searched online and couldn't find a straight answer. I know how to read a file into java to be read or manipulated or even how to delete a file but I don't know how to execute an external file (stored on the user's system).
For instance if I had a list of books and their locations on the user's system. I'd like when the user clicks on a particular button then a pdf or document in a particular location is opened up in the relevant software e.g. adobe document reader or word etc.
How do I do this?