Oracle's Sun Java SE 7, a.k.a Java 1.7, is the preferred version to use with the Sakai CLE, because it has been tested the most thoroughly. Sakai 10 should have binary compatibility with Java 6. Certain files, such as *.jsp and *.jws, require compilation so downloading and attempting to use only the run time environment (JRE 7.0) will not suffice. Mac OS X 10.7 and above does not include a Java installation by default. If you find Sun's version and naming conventions confusing, see Sun Java SE Naming and Versions for an outline of their practices.
As of June 19, 2013, an issue has been reported with respect to Java 7 compatibility. The problem is in the Comparators and the workaround is to use the JVM property
This issue has been fixed for jdk7u60+.
For details see - http://sakai-project-mail-list-archives.1343168.n2.nabble.com/Building-Sakai-Java-7-and-Sakai-comparators-tt7589944.html and - KNL-1083Getting issue details... STATUS
To confirm that Java is both installed on your system and is the correct version for Sakai, run
java -version from the command line:
If Java is installed, basic version and build information will be displayed:
If Java is not installed or you are running the wrong version you can download the Java SE 7.0 JDK release from Oracle's Sun archive:
Install the JDK, typically in the
/opt directory, i.e.
/opt/java. Install the JRE in a different directory (usually the default directory, especially if running Windows) or you may experience run-time issues.