After checking for a valid Java version, I would like to set the Environment Variable in Windows to the folder where Java is located.
For instance: JAVA_HOME = C:Program FilesJavajdk1.7.0_11
Is a variable available for just that folder path? If not how would I go about detecting that since I can't hardcode that folder path because of so many Java versions.
asked 14 Jan '13, 14:59
If you are using the <autodetectjava>, it will define the variable
And then set the environment variable:
answered 14 Jan '13, 16:39