ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 22179] - Wrong Class Version
Date Mon, 11 Aug 2003 11:39:18 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22179>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22179

Wrong Class Version





------- Additional Comments From conor@cortexebusiness.com.au  2003-08-11 11:39 -------
Ouch. I don't see any info in your attachment about the wrong class file
version. I would expect the JVM to report any such error in a slightly cleaner
fashion.

I have tested here on my system (RH9 Linux, JVM build 1.3.1-b24) and Ant 1.5.3
and I do not have any issues. The Ant build is designed to be compatible with
JVMs right back to 1.1 since the target parameter to javac is "1.1" which should
guarantee the correct magic number.

The fact that the error occurs here

Current Java thread:
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:120)
	at org.apache.tools.ant.Project.init(Project.java:274)
	at org.apache.tools.ant.Main.runBuild(Main.java:582)
	at org.apache.tools.ant.Main.start(Main.java:196)
	at org.apache.tools.ant.Main.main(Main.java:235)

would indicate that the Ant code is OK in the VM. It may be that there is a jar
in your ANT_HOME/lib directory which is not compatible. It may be related to an
optional task since this is what Ant is up to when the error occurs.

Can you run with ant -debug and see what Ant says it is doing when the crash
occurs. It may give you a hint.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message