Question
Santosh Pai · Mar 17, 2016

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.

 

 

0
0 764
Discussion (3)2
Log in or sign up to continue

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.