openArchitectureWare.org

oAW has moved to Eclipse.

At this site you will find information about the outdated version openArchitectureWare 4, only.
Please read our letter of intent for further information.

 
   

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:

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").

Release Build may fail with JDK 1.5 | 2 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
Release Build may fail with JDK 1.5
Authored by: Anonymous on Thursday, January 05 2006 @ 06:10 PM CET
Will this be fixed? Will the final oAW 4.0 run on JDK 1.5?