Ensemble 2015.2 JDBC Gateway Java version error
Updated DEV server from account 2013.x to 2015.2 (Build 664_3U) of Ensemble
Version: | Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2015.2 (Build 664_3U)
|
Platform : UNIX (Red Hat Enterprise Linux for x86-64)
When trying to start the JDBC gateway server got the following message
*****************************************************************************
Type: Error
Text: Execution returned: Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intersys/gateway/JavaGateway : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:643)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:323)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:268)
Could not find the main class: com.intersys.gateway.JavaGateway. Program will exit.
The error means that the version of your Java runtime is too old. For more information on this error, please see a related stackoverflow thread:
http://stackoverflow.com/questions/10382929/how-to-fix-unsupported-major...
Recent versions of Caché and Ensemble only support Java 7 and 8, as Java 6 has reached end-of-life and has multiple security flaws.
Upgrade your Java runtime to 7 or 8 and the error will go away.
Thanks Stefan.
We will give that a shot
Regards
Hello,
We got the same error when we updated Ensemble to 2015.2.3, even though we already had Java 7 installed.
Connection failed.
JDBC Gateway failed to start: ERROR #5001: There were errors returned when trying to start the Java Gateway
Return: Exception in thread "main"
java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/intersys/gateway/JavaGateway, offset=6 ...
The problem was that the JAVA Home Directory in the SMP was still pointing to wrong directory Java 6. We just changed it to right directory 71_64 , started the Gateway and everything is OK.