title: Jenkins cannot find JAVA_HOME automatically
body: <p>I have java 1.8 installed and environment variable set on my windows 10 laptop. But when I run my maven project through Jenkins pipeline, Jenkins cannot find JAVA_HOME variable by itself.
  Would anyone guide me so resolve this issue, please? </p>
  
  <p><a href="https://i.stack.imgur.com/0wE6C.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/0wE6C.jpg" alt="enter image description here"></a></p>