I need to set the Java environment variable in cmd.exe. I tried this:
set java = System.out.println(System.getProperty("java.home"));
path=java;%path%
I am aware that this does not change anything, but I thought it'd be a good start. So how could I change the Java environment variable? (The script needs to be run on Windows 7 and 8 clients.)