I recently wrote a program that allows me to search my files in a very specific way. They are all Guitar Pro files (.gp3, .gp4, .gp5) if it makes any difference for anybody. In the end, it prints out the list of files you search for.
Is there a way to make the file open in the application associated with the extension (Guitar Pro)? So, can Java do an equivalent of double-clicking the file or, maybe, open the application and then open the file itself?