|
-
July 14th, 2004, 10:03 AM
#1
Setting file type to open in WebStart Program (Opened file as parameter)
Hi --
I've created a Java program & installed in on my PC using Web Start. Now I'd like set all .sit files to automatically open in my program. My program expects a file as input, and I'd like the opened .sit file to be that parameter.
I've tested this using a batch file to run the program (instead of Web Start), and that worked fine. I'm not able to get this to work with a Web Start program, though.
I opened My Computer & went to Tools / Folder Options / File Types. I created an SIT extention, and I tried a number of things:
- I had Web Start place a shortcut on the desktop, and then I selected that shortcut from the list in the File Types window --> I got a "TooManyArgumentsException" when I double-clicked on the .sit file.
- I tried to set the File Types setting to http://myserver/myapp.jnlp. --> Windows recognized that this wasn't an executable & wouldn't let me save it.
- I created a shortcut to http://myserver/myapp.jnlp and pointed the File Types setting to that. --> Windows wouldn't let me save that.
- I clicked the Advanced button on the File Types tab, and created an open action. I tried the same three things there & got the same results.
Is it possible to do what I'm trying to do (force .sit files to open in my Java Web Start program and send their filename into the program's main method as a parameter)? Does anyone have any pointers?
Thanks,
Bonnie
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|