Hi,
Is there a command to execute a "file"?
Such registered file types as .doc and .html
have their default executor such as Internet Explorer and MS-Word.
So my question is,
is there any way to execute the files with
their default executor?
Roedy Green - 02 Feb 2006 07:03 GMT
>Is there a command to execute a "file"?
>
>Such registered file types as .doc and .html
>have their default executor such as Internet Explorer and MS-Word.
sort of. see http://mindprod.com/jgloss/exec.html
You must spawn the local command processor whatever it is called pass
it parameters that will get it to look up the proper handler.
Unfortunately this code is platform specific. I figure Sun did not
want to appear biased in selecting a default command processor for
each platform.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Ranganath Kini - 03 Feb 2006 15:57 GMT
The answer to your problem is Java Desktop Intergration Components or
JDIC project which is a set of APIs allowing you to integrate your
Java-based applications with the desktop system in a platform
independant way. Read more about JDIC here:
http://javadesktop.org/articles/jdic/index.html
And here is a link to some examples of JDIC put to use:
https://jdic.dev.java.net/documentation/Examples.html
Hope it helps!