Can anyone make the following run?
public class ExecTest { public static void main(String[] args) { try { //Notice the multiple spaces in the arg
For your specific case of needing the reveal/select command, I get around the windows quote nightmare by using cmd /c start:
String[] cmd = {"cmd", "/c", "start explorer.exe /select," + path};
Where path is the absolute path from a File object.
path