I am creating a COM object using Cold Fusion. The dll is created using
PowerBuilder.
<cfobject
action="create"
name="objPmtAmt"
type="com"
class="loi.CoLoiClass">
I have registered the dll it but I get the following error:
An exception occurred when instantiating a Com object.
--------------------------------------------------------------------------------
Details:
Error Detail:The cause of this exception was that:
coldfusion.runtime.com.ComObjectInstantiationException: An exception occurred
when instantiating a Com object..
Can ColdFusion instantiate a PowerBuilder object?
Thanks for your help!
ksmith - 29 Mar 2006 12:44 GMT
You must make sure all the DLLs that your powerbuilder object are in the java
library path. This should include the PowerBuilder runtime at a minimum
(pbvm70.dll for PB7).
You edit the jvm.config file for CFMX. Enter the appropriate directory:
# where to find shared libraries
java.library.path=c:/yourPBRuntimeDir,...