Open a dir and a file with its associated program in win, but in Linux ?

In windows I can open a dir in an explorer window with this java code:

For winnt o 2000

Runtime.getRuntime().exec("cmd /C start c://db /B");

For win9x

Runtime.getRuntime().exec("start c://db");

For opening a file in win I can use this java code:

Runtime.getRuntime().exec("cmd /C start filename /B");

or

Runtime.getRuntime().exec("start filename");

[410 byte] By [lambu76] at [2007-9-26 10:36:55]
# 1

In windows I can open a dir in an explorer window with this java code:

For winnt o 2000

Runtime.getRuntime().exec("cmd /C start c://db /B");

For win9x

Runtime.getRuntime().exec("start c://db");

For opening a file in win I can use this java code:

Runtime.getRuntime().exec("cmd /C start filename /B");

or

Runtime.getRuntime().exec("start filename");

In linux how can I do the same thing ?

lambu76 at 2007-7-1 23:03:02 > top of Java-index,Other Topics,Java Community Process (JCP) Program...