Search code examples
javamacosmavenjava-home

Maven ONLY works without changes in bash profile (JAVA_HOME or PATH) (Mac OS)


When I am trying to type in the bash profile the required commands it says that JAVA_HOME should point at a J.D.K. (Adopt Open J.D.K) and not at a J.R.E. It only worked, when i left the bash profile completely empty. But that was not what i should have been doing?

Maven also seems to find the Open J.D.K. runtime when I am leaving the bash profile empty...

I'm confused. Should i just let it be or do I HAVE to give a JAVA_HOME PATH in the bash profile?


Solution

  • You do not have to set JAVA_HOME.