nod - code's working, and simpler than Ben's, but ...
# adobe
r
nod - code's working, and simpler than Ben's, but javaloader is built in now (and my use case is simpler)
👍 1
h
Perfect timing on this markdown topic as I just had a use case for it come up. I followed Ray's blog post on this and got hung up on the page seeing the jar file. I've added the loadPaths in Application.cfc pointing to where the jar is but get "*Object Instantiation Exception. Class not found: com.vladsch.flexmark.util.data.MutableDataSet"* I used
this.javaSettings = {loadPaths:[expandPath( "./lib/flexmark-all-0.64.8-lib.jar")]};
If I add the class to the CF /lib folder and restart the CF app service, it works fine but I'd rather be able to call this library on demand. Is there a CF administrator setting I might have set that is preventing me from loading this library?
I writeDump this.javaSettings and the loadPaths looks correct to me.
I figured it out. the application has to be reloaded for the new jar to get picked up. :)