Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

NB JAVA HOME should point to a JDK not a JRE The JAVA HOME environment variable is not defined correctly

Asked by Angela Baker Jul 25, 2021 2.1K views 1 answer
Share

About this question

 Hi Guys, I have configured Maven in Jenkins. But it is showing me the below error when I tried to run any job.

[maven] $ /maven/bin/mvn -f pom.xml clean package
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
Build step 'Invoke top-level Maven targets' marked build as failure
Finished: FAILURE

How can I solve this error?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.