Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Cocoa-Java XML Parser problems



Hi,

I'm trying to set up a simple XML parser in a Cocoa-Java application.

I used this as an example:

http://www.cis.upenn.edu/~matuszek/cit597-2002/Examples/first-sax- example.html

and adapted it in a Cocoa application.
The app launches without any problem, but when I call the parsing method I get this error:

2004-02-05 10:36:14.287 SimpleRSS[5445] java/lang/UnsupportedClassVersionError: javax/xml/parsers/SAXParserFactory (Unsupported major.minor version 48.0)

If I comment the lines that set up the SAXParser, I still get an error with the DefaultHandler:

2004-02-05 10:37:49.378 SimpleRSS[5481] java/lang/UnsupportedClassVersionError: org/xml/sax/helpers/DefaultHandler (Unsupported major.minor version 48.0)

What is very strange though, is that if I adapt my code so that it will compile as a pure-java class and lauch it in a shell, it works fine !

Is there some kind of uncompatibility with Cocoa ?

I can give the code, if it helps.

Thanks.

Fabien Conus
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.