[ https://issues.apache.org/jira/browse/MNG-7010?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17386144#comment-17386144 ]
Elliotte Rusty Harold commented on MNG-7010: -------------------------------------------- Looks like that would work. I don't know if there's a more official way to do this: $ ls /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/bin appletviewer javah jjs jvisualvm schemagen extcheck javap jmap keytool serialver idlj javapackager jmc native2ascii servertool jar jcmd jps orbd tnameserv jarsigner jconsole jrunscript pack200 unpack200 java jdb jsadebugd policytool wsgen javac jdeps jstack rmic wsimport javadoc jhat jstat rmid xjc javafxpackager jinfo jstatd rmiregistry (base) ~$ ls /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre COPYRIGHT THIRDPARTYLICENSEREADME.txt LICENSE Welcome.html README bin THIRDPARTYLICENSEREADME-JAVAFX.txt lib $ ls /Library/Java/JavaVirtualMachines/jdk1.8.0_172.jdk/Contents/Home/jre/bin java orbd rmid tnameserv jjs pack200 rmiregistry unpack200 keytool policytool servertool > omit "NB: JAVA_HOME should point to a JDK not a JRE" except when that is the > problem. > ------------------------------------------------------------------------------------- > > Key: MNG-7010 > URL: https://issues.apache.org/jira/browse/MNG-7010 > Project: Maven > Issue Type: Improvement > Reporter: Elliotte Rusty Harold > Priority: Minor > Fix For: 4.0.x-candidate, 3.8.x-candidate > > > Got this message a bunch today: > > $ mvn verify > 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 > > fair enough. My JAVA_HOME is broken, for reasons. However the problem is > **not** that it points to a JDK instead of a JRE. Maven should omit "NB: > JAVA_HOME should point to a JDK not a JRE" except when that is the problem. > Also, I have no idea what NB means here. Nota bene perhaps? > > -- This message was sent by Atlassian Jira (v8.3.4#803005)