Skip to main content
gamedev.net
🔒 Locked

unsupportedClassVersionError using Antenna

Started by Multiverse 0 replies 650+ views
Original Post
Multiverse
Multiverse
Hi Everyone, As the title suggests, I get that error when trying to run an ant task that I have written from the command line. The full error is: java.lang.unsupportedClassVersionError *classname* (unssupported major.minor version 49.0) From what I have been able to find, this means that some of the classes I'm using were compiled with different JDKs. I'm using : Ant 1.6.5 antenna 0.9.13 JRE 1.5.0-06 J2SDK 1.4.2_09 I guess one of these is causing the problem, and I'm also guessing that its the JRE 1.5 thats the problem, but I'm not sure. :S If anyone could explain where I'm going wring that would be great. Thanks, Multi
Multiverse
Multiverse
Hi again everyone,

For the time being I've managed to find a workaround for my problem.

It looks to me as though it was trying to compile using 1.5, but everything else was 1.4.

Obviously theres something wrong with my environment, which I still need help sorting out. ;)

But for now, in my ant script, I've added:

executable="c:/j2sdk1.4.2_09/bin/javac"
compiler="javac1.4"

to my call to javac to get around the problem.

But I'd still like to sort out my environment, so if anyone can help, please do!

Thanks,

Multi

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.