首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安卓系统上的Jets3t

安卓系统上的Jets3t
EN

Stack Overflow用户
提问于 2010-04-27 14:49:23
回答 1查看 1.5K关注 0票数 2

我试图在安卓应用程序中使用Jets3t库,但当我使用该库时,Rest服务总是出现错误。

代码语言:javascript
复制
04-27 16:47:39.491: ERROR/S3Service(225): Couldn't initialize a sax driver for the XMLReader

我试图包含Xerces库和Crimson库,但它运行得并不好。我得到了这个错误:

代码语言:javascript
复制
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.

我能做些什么让它工作吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-07-06 06:19:11

显然,您可以通过设置以下系统属性来解决SAX驱动程序问题:

代码语言:javascript
复制
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

票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/2719257

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档