You need the Java Development Kit (JDK) in order to use Maven. To download and install the Java JDK, follow these instructions:
- Visit http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Under 'Java SE Development Kit 8u(version)', select Accept License Agreement, then select the platform of your choice.
Windows:
jdk-8u(version)-windows-x64.exe
Linux:
jdk-8u(version)-linux-x64.tar.gz
Mac:
jdk-8u(version)-macosx-x64.dmg
- Follow the install instructions for your specific platform:
- You might also need to set the JAVA_HOME variable. If Maven fails to run or if Maven indicates a JDK is missing (or JAVA_HOME is not set), follow these instructions:
- Setting the JAVA_HOME environment variable on Windows:
- Setting JAVA_HOME environment variable on MAC OS:
- Setting JAVA_HOME environment variable on Linux: