When using Boxstarter and or Chocolatey it is difficult to install JDK properly to use with Maven and other tools.
How can I add to environmental variables?
setx -m path "C:\java"
but this will clear previous environmental variable.
Suggesing this was a duplicate:I said I wanted "add" to the ev's not "set" and I was clearly looking for a cmd script