简体   繁体   English

使用JDK1.6或更高版本时,可以从lib文件夹中删除JAXB-api.jar吗?

[英]can i remove JAXB-api.jar from lib folder, when we are using JDK1.6 or above

In our application in lib folder we have jaxb-api.jar which was there from so many years when we are using jdk1.5 and all. 在lib文件夹中的应用程序中,有jaxb-api.jar,这是我们使用jdk1.5这么多年以来得到的。 but now, we have upgraded to jdk1.8 and still I find the jaxb-api.jar in our lib path. 但是现在,我们已经升级到jdk1.8,但仍然可以在我们的lib路径中找到jaxb-api.jar。

I thought the jar will be included in jdk1.6 and above, so can I remove the jar from the lib? 我以为jar会包含在jdk1.6及更高版本中,所以我可以从lib中删除jar吗? or will the JVM takes the jar from the folder? 还是JVM从文件夹中获取jar? I am very much new to this topic so can please help me in this? 我对这个话题非常陌生,因此可以在这方面帮我吗?

Just move that jar from lib to another location for testing purposes and start app. 只需将jar从lib移动到另一个位置以进行测试,然后启动应用即可。 If everything start then yes you can remove it else check the error and try to read docs maybe you need to upgrade something to migrate to new version. 如果一切都开始了,那么可以将其删除,否则请检查错误并尝试阅读文档,也许您需要升级某些内容才能迁移到新版本。

JAXB is part of jdk since JDK1.6 . JDK1.6起, JAXB是jdk的一部分。

for more information take a look to Introduction to JAXB 有关更多信息,请参阅《 JAXB简介》。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用jdk1.6编译器API进行编译时,如何将内存中的jar文件放入类路径中? - How to put a jar file in memory into classpath when compiling with jdk1.6 compiler API? 升级到 jdk1.6 时 MockEJB 失败 - MockEJB fails when upgrade to jdk1.6 鉴于jdk1.6及更高版本中的HashMaps导致multi = threading问题,我应该如何修复我的代码 - Given that HashMaps in jdk1.6 and above cause problems with multi=threading, how should I fix my code jdk1.6下提供了“ tools.jar”的源代码 - Source code for “tools.jar” available under jdk1.6 使用openjdk1.6或sun jdk1.6编译代码 - Compiling code using openjdk1.6 or sun jdk1.6 如何阻止Sun JDK1.6内置StAX解析器解析DTD实体 - How do I stop the Sun JDK1.6 builtin StAX parser from resolving DTD entities jdk1.6内存布局 - jdk1.6 memory layout 来自JDK1.6中ManagementFactory的托管Mbeans - NotCompliantMBeanException: - Managed Mbeans from ManagementFactory in JDK1.6 - NotCompliantMBeanException: jdk1.8中的ExceptionInInitializerError不是jdk1.6中的 - ExceptionInInitializerError in jdk1.8 not in jdk1.6 使用JDK1.6以编程方式签名Jar文件但使用JDK1.7时出错 - Error in signing Jar file programmatically with JDK1.6 but working with JDK1.7
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM