Open a folder in Windows explorer with Java

I am currently working on a document manager. In this manager it would be handy to click on a button and open the folder were documents are stored (On the server side) I want to open the explorer on the client side with the view of the information stored on the server side. How can I do this with Java?
1 answers

Should this Windows Explorer window open on the machine that the user of your application is working on? If so, this cannot be done with Java, because the Java code executes on the server and not on the user's machine.

For starting a process from Java, you can use the ProcessBuilder class. You need to start explorer.exe and give the folder as argument, e.g.:

C:\Windows\explorer.exe D:\MyFolder