JAVA_HOME should point to a JDK not a JRE

Abdurakhmon :

I am trying to set up maven for my project and I am getting this error

"JAVA_HOME should point to a JDK not a JRE"

I know there are already similar question but it did not work. How can I point JAVA_HOME to JDK in windows. I am using IntelliJ IDEA

sovas :

Control Panel -> System and Security -> System -> Advanced system settings -> Advanced -> Environment Variables -> New System Variable

enter image description here

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=424317&siteId=1