When starting WinRun4j like this:
the trailing double quote will be removed from the command line arguments and will not be available to the Java main() method. So the following line in the main() method:
System.out.println("arg0=" + args);
Will print -myswitch="hello (without the quote).
The trailing double quotes are removed for every parameter, not only the last one. With the following command line:
winrun4j -myswitch="hello" -switch2="world"
arg will contain "hello
arg will contain "world