Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

JAVA_HOME should point to a JDK not a JRE

C:Users>echo %PROGRAMFILES%
C:Program Files

C:Program Files>set JAVA_HOME=%PROGRAMFILES%Javajdk-11.0.2

C:Program Files>echo %JAVA_HOME%
C:Program FilesJavajdk-11.0.2

C:Program Files>mvn -version
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
Maven home: C:apache-maven-3.6.2in..
Java version: 11.0.2, vendor: Oracle Corporation, runtime: C:Program FilesJavajdk-11.0.2
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #point #JDK #JRE
ADD COMMENT
Topic
Name
3+7 =