I think the above question says it all.
views:
156answers:
2
+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
2008-10-12 21:17:29
+1
A:
I would also mention that the class has to be in CF's classpath.
Ryan Guill
2009-01-12 19:26:38