This content has been marked as final. Show 2 replies
If your application is a self-contained as produced by the FX packager there isn't support for file association yet, but it will come at some point: see http://javafx-jira.kenai.com/browse/RT-23918
For the time being you've to manage it in an OS dependent manner:
- on Mac the post-install script that FX packager calls can be customized to process the Info.plist. How to create file association in Info.plist is described in MacOS docs.
- on Linux you can use too the post install scripts too, commands to call are either RPM or Debian stuff.
- on Windows the file association management is delegated to the "companion" software you've decided to use. If it's Inno Setup as suggested in FX docs you can then use a custom -post-image.wsf.
Thank you yves joan , your post is really helpful, I've make my app get that behavior on Mac.
There is another problem I met, How can I get the file path which the user double clicked, I try to get it from main method's agrs and Application.getParameters().
None of them work for me, do you have any idea on this?