Issue:
I am getting the Maven error \"The JAVA_HOME environment variable is not defined correctly\" when I run through Inno setup batch execution. Howe
A very common mistake people make is that, when they set JAVA_HOME or JRE_HOME, they set the value to C:\Program Files\Java\jdk1.8.0_221\bin or similar.
JAVA_HOME
JRE_HOME
C:\Program Files\Java\jdk1.8.0_221\bin
Please note JAVA_HOME and JRE_HOME value should not contain \bin
\bin