New install fails with Java version error

RC <[email protected]> Wed, 10 Feb 2016 20:38:41 +0000 (UTC)
Newsgroups gmane.network.opennms.install
Message-ID <[email protected]>
After following the steps on the website I have got to the 'install -dis' 
stage and I am getting the following error:
$OPENNMS_HOME/bin/install -i
Exception in thread "main" java.lang.UnsupportedClassVersionError: 
org/opennms/bootstrap/InstallerBootstrap : Unsupported major.minor version 
52.0

I understand this is a java version error, so I ran java -version and I get:
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

JAVA_HOME is set to /usr/lib/jvm/java-8-oracle and OPENNMS_HOME to 
/usr/local/OpenNMS

Any ideas??


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-install mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-install