Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Calling the Windows "Open With" dialog from Java Application

843798Apr 13 2002 — edited Apr 18 2002
I have an email application written which caters for the opening of email message attachments.

I have a configuration file that enables mapping of email attachment extensions to the windows application that should be used to run the attachment. I use the Java Runtime exec() command to open the attachments - this works fine.

The problem is that if I get an email attachment with an unusual file extension, then I need a mechanism such as the "Open With" dialog in Windows to enable the user to select the application that should run the attachment.

Does anyone know how to call the Windows "Open With" dialog from a Java Application, or is there a different approach that could be taken. Somebody mentioned using JFileChooser, but I have had no luck using this approach yet.

Any suggestions would be welcome, thanks


Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 16 2002
Added on Apr 13 2002
2 comments
192 views