I’m trying to load a different version of PDFBox in my Lucee app using JavaLoader. However, I’m getting an error message, “The requested class could not be found” when trying to inject the PDFBox class in my model.
Here’s what my code looks like:
component {
property name="pdfBox" inject="javaloader:org.apache.pdfbox";
function init() {
return this;
}
}
I can confirm that Javaloader has loaded the pdfBox jar by dumping out javaLoader.getLoadedURLs()
:
Does anyone have any tips on how I can inject this jar with javaloader?