Problem : JAVA_HOME is set to an invalid directory. please set the java_home variable in your environment variable to match the location of your java installation.
Solution :
Computer > Properties > Advanced System Settings > System Properties > Advanced > Environment Variables
In System Variables :
Variable Name : JAVA_HOME
Variable Value : C:\Program Files\Java\jdk1.8.0_45 (Set your JDK)
In System Variable:
Variable Name : path or PATH
Variable Value : [already there+];%JAVA_HOME%\bin
If You are getting still this error then:
To Set JAVA_HOME : go to Command Prompt and Execute following command
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_45
Restart your IDE and Command Prompt then install mvn again.
Please Comment Thanks to us if this topic is helpful :)
Solution :
Computer > Properties > Advanced System Settings > System Properties > Advanced > Environment Variables
In System Variables :
Variable Name : JAVA_HOME
Variable Value : C:\Program Files\Java\jdk1.8.0_45 (Set your JDK)
In System Variable:
Variable Name : path or PATH
Variable Value : [already there+];%JAVA_HOME%\bin
If You are getting still this error then:
To Set JAVA_HOME : go to Command Prompt and Execute following command
set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.8.0_45
Restart your IDE and Command Prompt then install mvn again.
Please Comment Thanks to us if this topic is helpful :)
0 comments:
Post a Comment