Second question, I haven't been active in the CF c...
# adobe
r
Second question, I haven't been active in the CF community or kept up with any CF changes over the past 5-6 years. Our CF app uses https://github.com/markmandel/JavaLoader to dynamically load a custom Java library, but that functionality isn't working correctly after upgrading to CF 2023... Should that JavaLoader still work in CF 2023 or is there a newer preferred way of loading custom Java libraries now in CF?
s
JavaLoader is no longer needed since CF can load Java libs directly via settings in
Application.cfc
s
I typically use createobject() for loading java objects. Also, here is the documentation for what Sean is talking about for adding java classpaths and such for specific applications in your application.cfc. https://helpx.adobe.com/coldfusion/developing-applications/using-web-elements-and-ex[…]fml-applications/enhanced-java-integration-in-coldfusion.html
s
very cool - was that added in CF2023, or was it also in CF2021?
s
I am pretty sure it was added in cf2021
actually looks like maybe the application specific class paths were in CF10
1
you may wan to read through https://cfdocs.org/java and the related articles at the bottom
👍 1
s
i sure hope this works... we need to update POI to a newer version since it's failing a Veracode scan, but we couldn't figure out a way because the newer version doesn't work with that old JavaLoader tool. 🤞