Reputation: 2792
How're we supposed to inject a file type association in java into a Windows or Mac environments? For instance registering .vlan file type to our java application! This would of course need to happen when the application is launching for the first time!
Thank you!
Upvotes: 1
Views: 213
Reputation: 168835
Part of the demo. of the FileContents
API shows how to do the latter.
.. the launch file prompts the user to associate file extension
.zzz
(simply a file type unlikely to clash with existing file associations) of content typetext/sleepytime
. ..
This should work on Windows, OS X & *nix.
Upvotes: 1