RTC Build Definition running a Java Application error
![]()
hi there
Within a build definition I have set a task of ANT me running a Java application. I tried different settings, however, to run the Build, I get the message:
[exec] The java class Could not be loaded. java.lang.UnsupportedClassVersionError: (com / ibm / ram / extension / app / ActualizaArtefactoRAM) bad major version at offset = 6
This is my configuration in ANT:
<exec executable="cmd">
<arg value="/c"/>
<arg value="C:/Ram/Ram.bat"/>
</ exec>
. Bat file content is:
java-classpath "C: \ Program Files \ Java \ jdk1.6.0_33 \ bin"-jar C: \ Ram \ ActualizacionRAM.jar Artefacto_001.ear 1.1.0 D: \ RTC \ Workspaces \ PRS_MDW_Persistencia \ Persistence \ persistenciaEar \ target ATT00002 . txt Build
exit
Configuration that I need to run the application ActualizacionRAM with the same settings in my build defintion JVM (Java Home = C: \ Program Files \ Java \ jdk1.6.0_33)
Thanks and regards.
|
4 answers
![]()
Please check if your javac is 7.0 but jre is 6.0. You have to make them consistent or jvm version should always later than the compliler version.
|
![]()
sorry, maybe your javac is 6.0 but the jvm is 5.0
|
![]()
Thansk for your answers
For the successful execution of the java application was necessary to specify the version of the JVM as a runtime parameter of Build Engine.
Regards.
|
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.
Comments
Usually that error means the class was compiled with a later level java compiler than the runtime trying to execute it.