Hi,

I am using JDK v.1.4.2.02, Ant v.1.6.0 and Middlegen v.2.1.

I am trying to go through the steps in the getting started section of
the website...

When I run ant in the <middlegen-home>\samples directory I get the
following error...

---------------------------------------------

C:\Middlegen-2.1-src\samples>ant
Buildfile: build.xml

init:

fail-if-no-xdoclet-1.2:

check-driver-present:

panic-if-driver-not-present:

middlegen:

BUILD FAILED
java.lang.UnsupportedClassVersionError: middlegen/MiddlegenTask
(Unsupported maj
or.minor version 49.0)

Total time: 2 seconds
C:\Middlegen-2.1-src\samples>

----------------------------------------------------

It's worth noting that I just uninstalled jdk v.1.5.0 and replaced it
with jdk v.1.4.2 as I was getting this error:

-----------------------------------------------------

compile-ejb:
    [javac] Compiling 53 source files to
C:\Middlegen-2.1-src\samples\build\clas
ses
    [javac]
C:\Middlegen-2.1-src\samples\build\gen-src\airline\ejb\FlightBean.ja
va:72: cannot access java.io.Serializable
    [javac] bad class file:
C:\JavaEnvironment\jre1.5.0\lib\rt.jar(java/io/Seria
lizable.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] public abstract class FlightBean
    [javac]                 ^
    [javac] 1 error

BUILD FAILED
C:\Middlegen-2.1-src\samples\build.xml:700: Compile failed; see the
compiler err or output for details.

------------------------------------------------------

I figured that there may be an incompatability issue between Middlegen
and JDK 1.5.0...

Anyway...  I'm rather confused.  Any help appreciated.

Regards,

Justin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
middlegen-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/middlegen-user

Reply via email to