Running defualt applications

Hello everyone,

I am writing a simple file browser and I have a small question. I would like to luanch an application when someone double clicks on an icon that is a file, and to luanch the defualt application for that file type. I have got this working in Windows via :

Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + FILEPATH)

I would like to have the same simple call like above for Unix and linux systems too. Is there something like this for those systems or an I going to have to find another route?

Thank you all,

dunnigan

[614 byte] By [dunnigan14a] at [2007-10-2 6:19:05]
# 1
I don't think you have the same think in Linux. Or probably if you have is distribution (or window manager) dependent. So I think you should find another way to do this.
beradriana at 2007-7-16 13:21:03 > top of Java-index,Desktop,Developing for the Desktop...