If my java app is running under Windows I can call Runtime.getRuntime().exec (“rundll32 SHELL32.DLL,ShellExec_RunDLL ” + filename); and pass the file to be opened. Windows will then find the correct app and call it to open that file.
Is there a way to do this in linux? The file I am trying to open can be html, pdf, docx, … (about 8 different extensions).
thanks – dave
Have you tried using the Desktop? Its purpose is to open files with the registered application.