Frage

Ich versuche, die Jets3t Bibliothek innerhalb einer Android-Anwendung zu verwenden, und ich erhalte immer Fehler mit dem Ruhe-Service, wenn ich die Bibliothek verwenden.

04-27 16:47:39.491: ERROR/S3Service(225): Couldn't initialize a sax driver for the XMLReader

Ich habe versucht, die Xerces Bibliothek und die purpurne Bibliothek aufzunehmen, und es hat nicht gut zu spielen. Ich bekomme diese Fehlermeldung:

Attempt to include a core class (java.* or javax.*) in something other
than a core library. It is likely that you have attempted to include
in an application the core library (or a part thereof) from a desktop
virtual machine. This will most assuredly not work. At a minimum, it
jeopardizes the compatibility of your app with future versions of the
platform. It is also often of questionable legality.

If you really intend to build a core library -- which is only
appropriate as part of creating a full virtual machine distribution,
as opposed to compiling an application -- then use the
"--core-library" option to suppress this error message.

Gibt es etwas, was ich tun kann, um es zu arbeiten?

War es hilfreich?

Lösung

Anscheinend kann man das SAX-Treiber Problem umgehen, indem Sie die folgende Systemeigenschaft festlegen:

System.setProperty("org.xml.sax.driver", "org.xmlpull.v1.sax2.Driver");

Kredit für diese Antwort geht an Bruno Hautzenberger auf Forum Jets3t Benutzer: http://groups.google.com/group/ jets3t-Benutzer / browse_thread / thread / d39f32168fd0c217? hl = en

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top