I have been fighting with Java trying to run an exe command in windows, I can launch notepad, but any time I try passing arguments I get nothing. I have searched over the last several days with tons of helpful ways to launch exe files, but I simply cannot figure out why none will run with arguments. Here is one of the examples I have tried today, using ProcessBuilder for starters.
public static void main(String[] args) throws Exception{
ProcessBuilder p = new ProcessBuilder("C:/my/path/phantomjs.exe", "script.js", "site.com", ">", "output.txt");
p.start();
}