This is an OS problem as opposed to a java problem. For each OS you need to associate the file with the application, which can be relatively easy or relatively hard depending upon the OS....