Error!!Unsupported class version-JVMCFRE003
Hi all,
I have installed RTC v6.0.1 and my build toolkit system v6.0.4 on IBM i and while i'm trying to build result in unsupported calss version error.Kindly guide me how to resolve by upgrading to higher version or is it possible to install lower version of build system toolkit on IBM i.My IBM i support java 6.2.6.
Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version; class=com/ibm/teami/build/toolkit/listener/IBMiEventFileDependencyListener, offset=6
* at java.lang.ClassLoader.defineClass(ClassLoader.java:273)
* at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
* at java.net.URLClassLoader.defineClass(URLClassLoader.java:563)
* at java.net.URLClassLoader.defineClass(URLClassLoader.java:474)
* at java.net.URLClassLoader.access$300(URLClassLoader.java:77)
* at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1059)
* at java.security.AccessController.doPrivileged(AccessController.java:488)
* at java.net.URLClassLoader.findClass(URLClassLoader.java:452)
* at java.lang.ClassLoader.loadClassHelper(ClassLoader.java:701)
* at java.lang.ClassLoader.loadClass(ClassLoader.java:680)
* at java.lang.ClassLoader.loadClass(ClassLoader.java:663)
* at java.lang.Class.forNameImpl(Native Method)
* at java.lang.Class.forName(Class.java:288)
* at org.apache.tools.ant.util.ClasspathUtils.newInstance(ClasspathUtils.java:249)
* ... 5 more
Accepted answer
Most of the time this [Caused by: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version ]
means that what you're trying to run in the JRE was compiled with a newer version of Java than is being used by the JRE. I.e. The JRE may be v1.7 and you might be building with Java 1.8.
Solution: Determine the JRE version of the execution environment and build your application with a compatable version.
However, you mention RTC 6.0.1 and 6.0.4 of Build Toolkit... If your RTC server is v6.0.1, you cannot use any client (eclipse, JBE, Build Toolkit, etc) newer than 6.0.1.