views:

438

answers:

2

I have a Java application in an application bundle that I want to associate a file type with.

For example, if there's a file

foo.example

when that file, or any file with the .example extension, is double-clicked, I want my application to start and open the file. I also want the files to have my application's icon.

I'd like to do this by editing the info.plist file, but it doesn't seem to be working.

Also, how does my Java application know which file is passed to it?