However if you <cfdump var="#workbook.init()#">

Errors with "Unable to find a constructor for class jxl.Workbook that
accepts parameters of type ( )."

So object [unknown type] must be an object type Class

The javaloader.cfc init() methods calls the protected constructor and
finally errors. If someone did not
have access to the source and did not know about the static methods their
would be no way to get around
this problem.

I guess is my method never initializes the class in the first place because
it does not have an init() method.

So it never calls the protected method in the first place.

That is your big boy
<cfset added = createObject("component",
"CLASSPATH").add_jar("C:\CFusionMX7\wwwroot\jxl.jar")>

Works on any coldfusion page i.e cfm, cfc, component and even inside
gateways.
<cfset Workbook = createObject("java", "jxl.Workbook")>

returns a class of object [unknown type]

<cftry>
<cfset Workbook.init()>
<cfcatch type="any">
 <cfdump var="#cfcatch#">
</cfcatch>
</cftry>

I get the same error as before.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:247765
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to