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

问题描述

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

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?

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版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-06 12:08