ColdFusion的10使用Apache POI的新版本 [英] Using a newer version of Apache POI in ColdFusion 10

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

问题描述

我想一个比使用Apache POI的新版本使用ColdFusion 10与它船,因为我需要访问一些较新的功能。

I would like to use newer version of Apache POI with ColdFusion 10 than the one with which it ships, as I need to access some of the newer functionality.

我已经试过交换ColdFusion的Apache的POI JAR文件的新版本,但是这会导致一些在建的ColdFusion US preadsheet功能打破。

I have tried swapping ColdFusion's Apache POI JAR files for the newer versions but this causes some of the built in ColdFusion spreadsheet functionality to break.

是否有可能在新版本加载在我的code使用,但离开ColdFusion的版本不变,使内置以s preadsheet功能仍然有效?

Is it possible to load in the newer version for use in my code but leave ColdFusion's version untouched so that the built in spreadsheet functionality still works?

我知道这是可能的<一个href=\"http://help.adobe.com/en_US/ColdFusion/10.0/Developing/WSe61e35da8d318518-106e125d1353e804331-7ffd.html\"相对=nofollow>指定CF10定制的Java负载路径但如果我尝试在已经被加载使用的ColdFusion的将这项事业的冲突库的新版本加载?

I know it is possible to specify a custom Java load path in CF10 but if I try and load in a newer version of a library which has already been loaded for use by ColdFusion will this cause a clash?

推荐答案

有可能使用马克曼德尔JavaLoader( HTTPS ://github.com/markmandel/JavaLoader )使用Apache POI的使用ColdFusion 10的新版本,而不会影响CF内置以s preadsheet功能

It is possible to use Mark Mandel's JavaLoader (https://github.com/markmandel/JavaLoader) to use a newer version of Apache POI with ColdFusion 10 without affecting CF's built in spreadsheet functionality.

我使用的Apache的POI 3.11版本-β2,因为这不取决于dom4j.jar这似乎是有问题的。

I used version 3.11-beta2 of Apache POI because this does not depend on dom4j.jar which seems to be problematic.

我用来代替CF10的内置加载JAR文件,因为这可以让我用来访问ColdFusion的Apache的POI的旧版本的能力的CreateObject()而访问新版本JavaLoader存储在使用JavaLoader方法我的根目录服务器[application.JavaLoader] .create()

I used JavaLoader instead of CF10's built-in ability to load JARs because this allows me to access ColdFusion's older version of Apache POI using createObject() whilst accessing the newer version stored in my webroot using the JavaLoader method server[application.JavaLoader].create().

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

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