Discussion:
[Middlegen-user] Installation issue...
Justin C. Beck
2004-12-07 10:32:07 UTC
Permalink
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

Loading...