2

Androidアプリケーション内でJets3tライブラリを使用しようとしていますが、ライブラリを使用するとRestサービスでエラーが発生し続けます。

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

XercesライブラリとCrimsonライブラリを含めようとしましたが、うまく機能しません。このエラーが発生します:

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.

それを機能させるために私にできることはありますか?

4

1 に答える 1

4

どうやら、次のシステムプロパティを設定することで、SAXドライバーの問題を回避できます。

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

この回答のクレジットは、JetS3tユーザーフォーラムのBruno Hautzenbergerにあります: http ://groups.google.com/group/jets3t-users/browse_thread/thread/d39f32168fd0c217?hl = en

于 2010-07-05T22:19:11.423 に答える