JDK 1.6和Xerces? [英] JDK 1.6 and Xerces?

查看:186
本文介绍了JDK 1.6和Xerces?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我当前的项目中,我们的目标是JDK 1.6 Runtime环境。对于传统rasons,Xerces JAR文件捆绑在应用程序中。

In my current project, we target a JDK 1.6 Runtime environment. For legacy rasons, Xerces JAR files are bundled in the application.

不再需要这些吗? JDK(有一段时间)在JDK中捆绑了XML解析库吗?

These are no longer needed right? The JDK has (for a while) had XML parsing libraries bundled in the JDK?

推荐答案

捆绑XML解析器没有必要从 JAXP 添加到JRE后的1.4。您应该使用JAXP而不是直接调用Xerces。在内部,JRE捆绑并使用Xerces(使用com.sun前缀)。

Bundling an XML parser has not been necessary since 1.4 when JAXP was added to the JRE. You should use JAXP and not directly call Xerces. Internally, the JRE bundles and uses Xerces anyways (with a "com.sun" prefix).

这篇关于JDK 1.6和Xerces?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆