Release Build may fail with JDK 1.5
If you follow the build instructions and try to run the release/build.xml script the build may fail if you are running JDK 1.5. In this case the following error message is reported while compiling the classes:
The full error message is:
class file has wrong version 49.0, should be 48.0
Try to run the ant script with JDK 1.4.The full error message is:
Buildfile: C:oaw4workshopoaw4buildworkspacereleasebuild.xml
release:
buildV4:
compile:
jar:
[jar] Building jar: C:oaw4workshopoaw4buildworkspaceworkflowdistoaw-workflow.jar
[copy] Copying 1 file to C:oaw4workshopoaw4buildworkspaceworkflowout
test:
[delete] Deleting directory C:oaw4workshopoaw4buildworkspaceworkflowouttestclasses
[mkdir] Created dir: C:oaw4workshopoaw4buildworkspaceworkflowouttestclasses
[javac] Compiling 7 source files to C:oaw4workshopoaw4buildworkspaceworkflowouttestclasses
[javac] C:oaw4workshopoaw4buildworkspaceworkflowtestsrcorgopenarchitecturewareworkflowcontainerComplexType.java:3: cannot access java.util.List
[javac] bad class file: C:ProgrammeJavajre1.5.0_04librt.jar(java/util/List.class)
[javac] class file has wrong version 49.0, should be 48.0
[javac] Please remove or make sure it appears in the correct subdirectory of the classpath.
[javac] import java.util.List;
[javac] ^
[javac] 1 error
BUILD FAILED
When using Eclipse you can configure the JRE to use in the runtime properties dialog. This dialog will open when choosing Run As -> Ant Build in the context menu of build.xml. Switch to page JRE and choose in Seperate JRE a JDK 1.4. A JRE is not enough because it does not contain the javac compiler. You can download JDK 1.4 here.
Don't forget to add JUnit to your classpath (see article "FAQ: Ant build fails because JUnit task is undefined").


