File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Ant, Maven and Other Build Tools and the fly likes UnsupportedClassVersionError error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "UnsupportedClassVersionError error " Watch "UnsupportedClassVersionError error " New topic

UnsupportedClassVersionError error

Cathie Lee

Joined: Nov 20, 2004
Posts: 8
I got the following error message when trying to build using ant.

Unable to load default ProjectHelper due to java.lang.UnsupportedClassVersionError: org/xml/sax/SAXException (Unsupported major.minor version 49.0

Does anybody know what's wrong? It was working fine with my build.xml. But now got this error.

My ant version: 1.6.2
My JDK: 1.3.1

Thanks in advance for your help.

Carol Enderlin
Ranch Hand

Joined: Oct 10, 2000
Posts: 1364
Unsupported major.minor version 49.0 sounds like a java version mismatch somewhere in your build.
Ilja Preuss

Joined: Jul 11, 2001
Posts: 14112
Some class you are trying to use was compiled with Tiger.

The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
I agree. Here's the link:
subject: UnsupportedClassVersionError error
It's not a secret anymore!