It's all about the answers!

Ask a question

Error!!Unsupported class version-JVMCFRE003

Arumugaraj swamynathan (1311) | asked Aug 08 '17, 5:59 a.m.

 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(
* at
* at
* at
* at$300(
* at$
* at
* at
* at java.lang.ClassLoader.loadClassHelper(
* at java.lang.ClassLoader.loadClass(
* at java.lang.ClassLoader.loadClass(
* at java.lang.Class.forNameImpl(Native Method)
* at java.lang.Class.forName(
* at
* ... 5 more

Accepted answer

permanent link
Kevin Ramer (4.5k8183200) | answered Aug 08 '17, 12:39 p.m.

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.

Arumugaraj swamynathan selected this answer as the correct answer

Arumugaraj swamynathan commented Aug 09 '17, 12:01 a.m.

 Thank you kevin for your quick response and if i use build tookit of version 6.0.1 will it resolve this error as whether this build toolkit of version 6.0.1 will support java 1.6 version?

Ralph Schoon commented Aug 09 '17, 1:49 a.m.

No, because the root cause is most likely that you are running something that was built with a newer version of Java with an older version of Java.

Your answer

Register or to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.