Can you explain more about what you are wanting to achieve and why?
Are you trying to open a folder view from Java code? If so, why? If you want the user to select a file, look at the JavaFX FileChooser stuff.
If you really want to open an external program for the user to explore a folder, here are some tips, though not a complete answer:
On Mac, I believe the Windows Explorer equivalent is called "finder", and on Linux it varies based on the Desktop environment, although the command xdg-open folder-path
will probably work on most systems.