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

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

问题描述

我一直在寻找如何创建ANT为使用Apache POI库Java项目的XML文件的例子。我遇到过这样的说法:


  

POI 3.5及更高版本需要JDK 1.5或更高版本。之前的3.5版本要求JDK 1.4 + 这里


我使用Apache 3.9,并设置我的项目的Java 1.4的JDK,并试图通过Eclipse运行我的程序时,我没有遇到任何错误。但我的问题是,如果我做的build.xml蚂蚁和部署JAR文件。请问我的项目仍然可以运行(3)

附加信息


    > Ant构建 -
  1. 我使用Ant插件在eclipse然后运行方式创建一个build.xml。我没有遇到任何错误。

  2. 同时设置JRE为JDK1.4

  3. 如果它运行我还没有测试这种没有或不是因为我仍然不知道如何在build.xml中添加一个JAR配置...我仍然在学习如何使用ANT。


解决方案

如果该项目规定,JDK 1.5或更高就意味着通常不检测与较低版本的完成。它可能仍然工作(在某种程度上),你发现了,但有可能会停止与Apache POI的新版本的工作。

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 and later requires the JDK version 1.5 or later. Versions prior to 3.5 require JDK 1.4+ here

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)?

Extra info

  1. I created a build.xml using the ANT plugin in eclipse then Run as --> Ant Build. I didn't encounter any error.
  2. Also set the JRE to JDK1.4
  3. I haven't tested this yet if it runs or not because I still don't know how to add a JAR configuration in build.xml... I am still learning how to use ANT.

解决方案

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天全站免登陆