Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The software is currently compatible with Java versions 1.7 8 and greater.  It will not currently build with Java 1.6 7 or other earlier versions.  You need to download the "Java Platform (JDK)" and not just the JRE.  It should work with Java 1.8 releases.

The bundle for your system should be downloaded from the Java SE downloads site.  Then you need to follow the setup instructions listed there.

...

No Format
export JAVA_HOME=/path/to/java/jdk
export PATH=$JAVA_HOME/bin:$PATH

#for example on rhel6-64 machine @ slac:
export JAVA_HOME=/afs/slac/package/java/amd64_linux/jdk1.8.0_101/
export PATH=$JAVA_HOME/bin:$PATH

...

No Format
[$] javac -version
javac 1.78.0_17101

If this command prints "command not found", the current PATH variable probably does not contain the Java bin directory or the location was set incorrectly.

Info
titleJava on OSX - DEPRECATED

On OSX, the Java configuration found by Maven can sometimes conflict with what is shown by the 'java -version' from the command line.  In particular, the Java version that comes bundled with the operating system might be 1.6 when a 1.7 JDK is required to build HPS software.

In order to fix this, setup the JAVA_HOME variable as follows:

export JAVA_HOME=$(/usr/libexec/java_home -v 1.7)

Of course, a valid Java 1.7 JDK installation must be present for this to work. You can get the latest version from here.

Simply install the DMG file as normal, and then setting up your environment as above should configure your machine successfully for Maven usage.

...