• Post Reply Bookmark Topic Watch Topic
  • New Topic

associate a file type with java app  RSS feed

 
Fon Drank
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there a way to associate a file type with my app so that whenever the user clicks on the file, it automatically opens up my java app and uses that file name as the first command line parameter? Sort of like how if a user clicks a .xml file, it will automatically open in XML Spy or whatever.
 
Jan Cumps
Bartender
Posts: 2632
17
C++ Linux Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You did not mention your operating system, but on windows xp, you can do this in Explorer:

(easiest is to first create a batch file that opens your java application)

Tools -> Folder options -> File Types -> New
enter your extension in the file extension field
Choose your batch file in opens with...

Regards, Jan
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!