Eric Belair
Eric Belair

Reputation: 10692

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?

Upvotes: 3

Views: 502

Answers (1)

Eric Belair
Eric Belair

Reputation: 10692

It seems the best solution is to replace my existing code - which invokes the JODConverter java libraries - with CFDOCUMENT calls, since the Java objects are no longer needed for the needed functionality in ColdFusion 11.

Upvotes: 2

Related Questions