This is a more specific version of the question I already asked on stackoverflow (How can I access a correct version of a Java Desktop class). I will reiterate here the problem, and clarify the question: I have a JavaFX application that can be used to edit files of a particular type on Windows OS. By using launch4j-maven-plugin I can make an exe file, and by using Inno Setup I can make an installer of this application that has a particular file type associated to it (kb files). If I install the application and double click on the file that this application is associated to while the application is not open already, the application opens and I can read the said file (I read main function args and use the filename to read the file). The problem I have is if the user tries to double click the file that this application is associated to, while the application is running. That does not work.
The question is: is there a way in Java 1.8 to respond to the event of double clicking the associated files for a JavaFX application ?
As already mentioned in the previous question, I tried using the Desktop class, but as I found out in the answer to that question, Desktop class has the methods to deal with this problem only starting from Java version 9. However, we cannot update Java to version 9 or higher, since that would require huge re-engineering effort on our side.