I'm not sure how this works on another OS, but on Windows you can use something like this
Desktop.getDesktop().open(new File("c:\\"));
Edit
Found another way (mark the link to the FileExplorer class from this answer). You can also use System.getProperty("os.name")
to determine the operating system.
source share