Apache POI JDK 版本 [英] Apache POI JDK version

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

问题描述

我正在寻找有关如何使用 Apache POI 库在 ANT for Java 项目中创建 XML 文件的示例.我遇到了这个说法:

I was looking for examples on how to create an XML File in ANT for Java project using Apache POI library. I encountered this statement:

POI 3.5 及更高版本需要 JDK 1.5 或更高版本.3.5 之前的版本需要 JDK 1.4+ 此处

POI 3.5 and later requires the JDK version 1.5 or later. Versions prior to 3.5 require JDK 1.4+ here

我正在使用 Apache 3.9 并将我的项目的 JDK 设置为 Java 1.4,并且在尝试通过 eclipse 运行我的程序时没有遇到任何错误.但我的问题是我是否在 ANT 中创建 build.xml 并部署 JAR 文件.我的项目还会运行吗(3)?

I am using Apache 3.9 and set the JDK of my project to Java 1.4 and I didn't encounter any error when trying to run my program via eclipse. But my question is if I make build.xml in ANT and deploy the JAR file. Will my project still run(3)?

  1. 我在 Eclipse 中使用 ANT 插件创建了一个 build.xml,然后运行为 -->蚂蚁构建.我没有遇到任何错误.
  2. 还将 JRE 设置为 JDK1.4
  3. 我还没有测试它是否运行,因为我仍然不知道如何在 build.xml 中添加 JAR 配置...我仍在学习如何使用 ANT.

推荐答案

如果项目声明需要 JDK 1.5 或更高版本,则意味着通常不会对较低版本进行测试.正如您发现的那样,它可能仍然有效(在某种程度上),但可能会停止使用较新版本的 Apache POI.

If the project states that JDK 1.5 or higher is required it means that usually no testing is done with lower versions. It might still work (to some degree) as you found out, but likely will stop working with newer version of Apache POI.

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

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