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.
Please sign in to leave a comment.