Where are java classes and libs put with Lucee 6.2

With Lucee 5 and older we installed our app (exploded) as a bunch of class files and JARS (some third party JAR files). We placed these in the WEB-INF/lucee/lib directory.

Where should these files be placed with Lucee 6.2?

NOTE: We don’t use maven (and don’t want to).

Thanks,
Mike

Same place should be fine. You just need to use the main server context since there isn’t a web context (unless enabled and going away with 7.0). I have my 1 jar under lucee-server/context/lib

1 Like

ChatGPT told me to put the class files in luceee-server/context/classes. I did that and still am getting classnotfound.

Hmm

Maybe the problem is the classes were compiled under Java 11 and now need to be compiled for Java 21?

Did you try what @KabutoTX1 suggested?

Java 11 classes work fine under 21, Lucee is distributed with java 11 bytecode, but produces bytecode for cfml for whatever version you are running

Thanks. The problem was that the javaSettings:LoadPaths was still pointing to the old WEB-INF/lucee directory. Once that was updated to the contexts directory the classes were found.

2 Likes