![]() ![]() This check may seem reasonable at first glance, but we have to consider that both JDK and JRE have a bin folder and both contain an executable java file. Here is the mvn executable check for Linux (Apache Maven v3.5.4): if thenĮcho "The JAVA_HOME environment variable is not defined correctly" >&2Įcho "This environment variable is needed to run this program" >&2Įcho "NB: JAVA_HOME should point to a JDK not a JRE" >&2 If the executable is not found, Maven terminates with the error. How does Maven verify the JAVA_HOME path?īefore running any goals, Maven checks for the existence of the java command in the path specified by JAVA_HOME or by asking the OS for a default JDK installation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |