LAMS 3.1 requires openJDK version 11
LAMS 3.0.x requires [Java JDK version 8|https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
LAMS require JAVA JDK 6 to run, not just the JRE (runtime environment). LAMS is developed and tested with the Sun/Oracle JAVA 6 JDK - it may or may not run on Java platforms from other sources.
Must be Java6!
LAMS 2.4 and 2.5 won't work with Java 7 or 8!
Download Sun/Oracle JAVA JDK 6
For other OS, please check on the Oracle Java 6 website
Installing Java JDK 6