I am setting up Maven on my Mac but it is not working because the JAVA_HOME variable is not defined. I had expected the java installer to create this but alas not.
Where is java installed so I can create this variable myself?
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
George Garside's path is correct. Latest JDK released today from Oracle. I advise downloading directly from Oracle's Site. Use the symlink to create your
Add the following to your
Just downloaded the kit and added the above to my
As you can see, variable is now clearly defined:
Macbook-Pro:~ njboot$ echo $JAVA_HOME