I'm trying to compile a project in using Git Bash, but i'm having a problem with java.
I have the JDK version 1.8.0.25 installed under the path T:\Program Files\Java\jdk1.8.0_25.
Initially, I tried to set the JAVA_HOME variable via the command in Git like so:
$ JAVA_HOME="T:\Program Files\Java\jdk1.8.0_25" Java -jar BuildTools.jar
This didn't work, I get an unable to locate directory error.
So I tried manually setting the environment variable via the command:
setx JAVA_HOME "C:\Program Files\Java\jdk1.8.0_25"
Then I ran the compile command without the first part and I get an error saying that the compiler tools were not found in my (JRE) directory. Almost as if its ignoring the environment variable I set and searching the JRE instead of the JDK anyway. Why won't it follow the path I specify?