解决方法使用Apache POI 3.9 JDK 4 [英] Workarounds for using apache poi 3.9 with JDK 4

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

问题描述

这是一个跟进的问题<一href=\"http://stackoverflow.com/questions/15352638/java-program-using-apache-poi-3-9-encountered-error-in-xml-build-file\">here 。我刚刚发现这个标题在的Apache POI网站

This is a follow up question here . I just found this caption in Apache POI website.

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+

显然,这是我不能建立我的Java程序的原因。我只是想知道是否有任何变通办法在那里我可以用我的当前设置成功打造我的项目在Ant中。

Clearly, that's the reason I can't build my Java program. I would just like to know if there are any workarounds where I can successfully build my project in Ant using my current settings.


  • 的Apache POI - 3.9

  • JDK - 1.4.2(4.0)

任何意见,建议,或黑客的欢迎。在此先感谢!

Any advice, tips, or hacks are welcome. Thanks in advance!

推荐答案

Java 1.4的,现在pretty老 - 这是在2002年让10年前发布的。定期支持在2008年结束了,所以我不敢想你有多少甲骨文支付的扩展支持它......如果有可能分流部分现金来升级项目!

Java 1.4 is pretty old now - it was released in 2002 so over 10 years ago. Regular support ended in 2008, so I dread to think how much you're having to pay Oracle for extended support for it... If possible divert some of that cash to an upgrade project!

的Apache POI 中的最后一个版本的Java上运行1.4 POI是3.2,2008年10月发布的源代码和它的二进制包可从 Apache的DIST存档。有与当今3.2采用POI两个主要断枝,第一是,它仅支持二进制文件格式。它不支持OOXML格式,如.XLSX,.PPTX,.DOCX。对于那些(通过XSLF,XSSF和XWPF)支持仅与POI 3.5引入,作为最低要求的凸点到Java 5。第二个问题是,你会在丢失了5年bug修复和新功能的,其中出现了很多!

The last version of Apache POI to run on Java 1.4 was POI 3.2, released in October 2008. Source and binary packages of it are available from the Apache dist archive. There are two main snags with using POI 3.2 today, the first is that it only supports the binary file formats. It does not support the OOXML formats such as .xlsx, .pptx, .docx. Support for those (via XSLF, XSSF and XWPF) was only introduced with POI 3.5, and required the bump to Java 5 as the minimum. The second issue is you'll be missing out on 5 years of bug fixes and new features, of which there have been a lot!

它以来没有人问关于Apache POI对旧的JDK新版本几年(其他人都已经成功升级到可用的东西正常的支持!)。当人们在问,一个常见的​​答案是尝试的Retroweaver ,这应该让你加载和运行JDK 5 code对JDK 1.4。我还没有尝试过自己,但人民赋予这个问题的答案似乎是幸福的,所以我认为它会做的伎俩...

It's been a few years since anyone asked about newer versions of Apache POI on old JDKs (everyone else has managed to upgrade to something with normal support available!). When people were asking, a common answer was to try Retroweaver, which should let you load and run JDK 5 code on JDK 1.4. I've not tried it myself, but people given that answer seemed to be happy so I assume it'll do the trick...

(转换POI 3.9在JDK 1.4中运行将是一个很多关于你的工作。由于3.2天,大多数新的code已使用仿制药,很多老code有了很大收拾并通过移动到仿制药简化,我觉得有varags的奇数位,东西长约日期格式化摇铃,并有所有的XML的东西,它可以做,但不会很快)

(Converting POI 3.9 to run on JDK 1.4 would be a lot of work for you. Since the 3.2 days, most of the new code has used generics, lots of old code has been greatly tidied up and simplified by moving to generics, I think there's the odd bit of varags, something about date formatters rings a bell, and there's all the XML stuff. It could be done, but it won't be quick)

这篇关于解决方法使用Apache POI 3.9 JDK 4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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