views:

156

answers:

2

I think the above question says it all.

+8  A: 

You run the createObject but don't call the "init" before running the static method. For example:

<cfset systemObject = createObject("java", "java.lang.System") />
<cfoutput>#systemObject.currentTimeMillis()#</cfoutput>

In this case "currentTimeMillis()" is a static method of the System class.

Turnkey
+1  A: 

I would also mention that the class has to be in CF's classpath.

Ryan Guill