Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to make my program start when certain file extensions are opened. For example, when you click on a .zip file in Windows, Winzip starts up.

How would I accomplish this?

share|improve this question

migrated from Dec 10 '12 at 21:07

This question came from our site for professional and enthusiast programmers.

I understand you may not be English, but you should spend a little more time on your spelling and grammar to elicit more answers. – Jivings Dec 10 '12 at 20:58
I think this should go on the SuperUser site. – Chris Gerken Dec 10 '12 at 21:03

That is called a 'File Type association'. Here is how you create and edit them in Win7/Vista:

in your case, you would create a file type extension for your custom file type, and then create an association to open files of that type with your java application.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.