How to open files using default association
807591Apr 10 2008 — edited Apr 29 2008Hello,
I'm trying to programmatically open files with their OS default associations. So for windows platform I have:
Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL " + file.getAbsolutePath());
This does not work when file names contain unicode characters like "�s����.jpg". Does anyone have a solution for this? What is the proper and recommended way to open files?
Thanks,
Marcin