I followed the instructions to point Maven to the appropriate JDK via a /etc/mavenrc
file detailed here:
How to change maven java home
When I then try to run maven, it fails, citing that the Java home directory is improperly defined because it's a directory.
mvn --version /etc/mavenrc: line 1: /Library/Java/JavaVirtualMachines/jdk1.8.0_121.jdk/Contents/Home: is a directory 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
My understanding is that Java_Home is supposed to be a directory. Why is it refusing to use the appropriate directory?