Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use a Java application as the Default Program for a particular file type?

Tags:

I have created a text editor using Java, and have it packed in a jar file using Netbeans. Now I created a text file, with an extension of ".text". I'm on Windows 7, so using it's property window I changed the default opening program to my text editor's jar file.

Now when I double click the file with ".text" extension, windows shows a dialogbox saying "{file name} is not a valid win32 application".

Please help me out of it..

Thanks.