aspose file tools
The moose likes Java in General and the fly likes open unknown file extensions with java Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "open unknown file extensions with java" Watch "open unknown file extensions with java" New topic
Author

open unknown file extensions with java

Alina Hila
Greenhorn

Joined: Aug 08, 2008
Posts: 5
Hello
Please help me with the following: i am trying to open a file with a specific application using java. I am working on a desktop application.
The following code using java.awt.Desktop works for known extension types,but when trying to open a file with an unknown extension it throws an exception. I know this is about to happen, because it's in the class documentation, but what i want to ask you is if there is another way of popping up the windows "open with" dialog through java. I just don't want to let unknown extension file types untreated. This is the code i use, and it works,just that it throws an exception for unknown file types:

Thank you very much


A later review :

the problem was solved running a windows process:

[ August 10, 2008: Message edited by: Alina Hila ]
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: open unknown file extensions with java
 
Similar Threads
File Chooser Dialog box
j_security_check - How to pass parameters in the URL
File.createTempFile() throws exception on Win7
Desktop problem
j_security_check - How to pass parameters in the URL