Thanks Nathan and Barney for clearing this up for me.
I guess this was as perfect excuse as any to finally learn Java. Man! I was
surprised how simple it was. I know C++ and I heard that the transition to
Java was easy, but I had no idea just how easy it was. I should have done this
While we're on the topic..
If you find yourself doing Java, the Eclipse IDE is a great platform
for it. And there's the CFEclipse plugin that includes CF editors and
various other things, so you can do your CF work in the same
application. And it itegrates easily with myriad version control
Actually that's exactly what I'm using. I had it lying around for CFEclipse,
but it just never stuck (Homesite/CFStudio kept calling be back). But for
Java, it's great. Not really a raving review considering I haven't tried any
other Java IDE's. At this point it does everything I need it to
I am trying to use CF to access a Java class method. One of the required
arguments is an object extended from an interface. Using createObject() to
instantiate the object, then passing it to the method as an argument causes an
error because the interface is abstract and must be extended.
You can only use the interface on Java objects. So you'll need a
concrete Java object that implements the interface. Just instantiate
that concrete object and pass it into your method.
The type system that CF uses is entirely divorced from the type system
that Java uses. There are a couple
Perhaps there's already a java object that impliments this interface?
Look around to see if there's anything that impliments your target
class. Otherwise, you could make one in java and createObject() it in CF.
-nathan strutz
Chris Terrebonne wrote:
I am trying to use CF to access a Java
6 matches
Mail list logo