2
votes

I have moved from Railo to Lucee, this particular jar file had resided in /railo/lib, and I placed it in what I thought the lucee equivalent which was to /lucee/lib and it is not picking it up, as in I get this error:

cannot load class through its string name, because no definition for the class with the specified name [com.notnoop.apns.APNS] could be found

When trying to load via:

createObject("java", "com.notnoop.apns.APNS")

Which worked on the railo installation. I also notice that /lucee/lib only has one jar file whilst /rail/lib had many. Where should my jar file go, or what am I doing wrong?

1
How did you install Lucee, and what version is it? - CfSimplicity
I do not have an answer about the base path, but does not Lucee also support dynamic loading from an arbitrary file path ie createObject("java", "package.ClassName", "c:/path/to/someFile1.jar,c:/path/to/someFile2.jar");? - Leigh

1 Answers

3
votes

So this is an easy fix. You'll want to locate the folder that your current site is in. Whether that be on a linux based or windows based machine...you'll want to copy the .jar file to the /WEB-INF/lucee/lib/ directory in the root of your site. Restart Lucee and you should be in business.

Hope this helps.