简体   繁体   中英

How can I integrate Open Office (32-bit) with a 64-bit Java Runtime Environment?

I am currently running a ColdFusion 11 64-bit installation with Java JRE 1.8.66 64-bit on Windows 2012. I want to install Open Office along with the JODConverter Java library so that I can use the libraries to convert Office files to PDFs with code. I have successfully run this installation in Windows 2003 32-bit with ColdFusion 8 32-bit. I also have this successfully working in Windows 7 with ColdFusion 8 and 64-bit JRE.

On the CF11/2012 server, I have installed Open Office 3.4.1, but it only allows a 32-bit installation. I'm thinking the 32-bit/64-bit differences is causing a problem because every time I try to instantiate the Java library, it throws an "Object instantiation exception":

Stack trace:

Message: org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration
    StackTrace: java.lang.ClassNotFoundException: org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration
        at coldfusion.bootstrap.BootstrapClassLoader.loadClass(BootstrapClassLoader.java:235)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at coldfusion.runtime.java.JavaProxyFactory$1.run(JavaProxyFactory.java:156)
        at java.security.AccessController.doPrivileged(Native Method)
        at coldfusion.runtime.java.JavaProxyFactory.getProxy(JavaProxyFactory.java:151)
        at coldfusion.runtime.ProxyFactory.getProxy(ProxyFactory.java:65)
        at coldfusion.runtime.CFPage.createObjectProxy(CFPage.java:6167)
        at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6130)
        at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6064)
        at coldfusion.runtime.CFPage.CreateObject(CFPage.java:6039)
        at coldfusion.runtime.CFPage.CreateObject(CFPage.java:5986)

Is there any way to get this integration to work correctly?

似乎最好的解决方案是用CFDOCUMENT调用替换我现有的代码 - 它调用JODConverter java库 - 因为ColdFusion 11中不再需要Java对象来实现所需的功能。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM