I would like to “link” few file extensions to my java application under windows. When user double clicks file with “linked” extension, I would like to open my app and I need to know path to file that launched app.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you deploy the app. using Java Web Start, an interest in file-types can be declared in the launch file. See the demo. of the file services, which..
When the user double clicks a
.zzzfile, it should open in the app. Actually, the word ‘prompts’ there is not the whole story. If you launch the sand-boxed version you will be prompted as to associating the file-type. The trusted version does not prompt.To add more user-control to the process, look to the
IntegrationServicethat was introduced in 1.6.0_18 (I don’t have a demo. of that one yet). You might run it at start-up, after checking with the user.