Just a quick thought but did you open the cmd box with administrator privledges, as this could cause your cmd not to run.?
hi. no i didn't but i got something working earlier without admin privileges but dont have the code for it anymore. should i use the process builder method?
To do this right click on the CMD icon, and select Run As Administrator.
Can't help on the Java process i'm afraid, was just offering PC advice.