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
Hi there
I've checked java settings in my server engine constructs the following finding:
environment variables:
JAVA_HOME = C: \ Program Files \ Java \ jdk1.6.0_33
JRE_HOME = C: \ Program Files \ Java \ jre6
Build path of the application "ActualizacionRAM"
jdk1.6.0_33
Variable JVM Build Definition:
Java Home = C: \ Program Files \ Java \ jdk1.6.0_33
Is there any other place where need to review the version of the JVM?
Thanks and regards
Comments
sam detweiler
Jul 08 '14, 10:42 p.m.Usually that error means the class was compiled with a later level java compiler than the runtime trying to execute it.