I was trying to use the javaloader with the
mongodb jar and seem to be only able to get back a java.lang.Class object back.
Here is the code that I was running with the mongo jar in the same directory:
<cfscript>
javaloader = createObject('component','javaloader.JavaLoader').init([ expandPath('./mongo-2.4.jar') ]);
test = javaloader.create('com.mongodb.BasicDBObject').init();
writeDump(getmetadata(test));
</cfscript>
It works for other classes in the jar, but doesn't seem to work for the BasicDBObject class.
Any suggestions?