ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EXT / FOCAL MALAPRADE Roland <ext.focal.malapr...@sncf.fr>
Subject RE: ant1.5 and jdk1.3.1
Date Wed, 18 Sep 2002 14:17:48 GMT
Maybe you should run a "clean" before recompiling
there could be .class files already compiled on JDK1.4, and when you
recompile, maybe Javac thinks the file is up to date, but it can't load it.

I'm not so sure about it, so test and see.

Roland.

-----Message d'origine-----
De : David McTavish [mailto:dmctavish@SANDVINE.com]
Envoyé : mercredi 18 septembre 2002 16:10
À : 'Ant Users List'
Objet : ant1.5 and jdk1.3.1



Here's my problem. Our build scripts worked perfectly yesterday when we were
running on JDK1.4 with Ant1.5. Now, we have to roll back to jdk1.3.1 so that
our app can run on FreeBSD. No problem, we've rolled back the code base so
we're not using any JDK1.4 goodies, and everything should be fine and dandy.
Unfortunately not so... now, when I run the compile target of my build
script I get the following error:

compile.impl:
    [javac] Compiling 20 source files to
M:\dmctavish_jdk13\sw\application\util\
classes

BUILD FAILED
java.lang.UnsupportedClassVersionError: com/sun/tools/javac/Main
(Unsupported ma
jor.minor version 48.0)
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
        at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)


I've truncated it as you get the idea.
This chokes on the very first file it attempts to compile. Any ideas would
be greatly appreciated.

d.

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message