Java 18 is not supported. Use Java 11.
# box-products
r
Java 18 is not supported. Use Java 11.
IIRC, Java 15+ has deprecated functionality still used by Lucee.
c
And make sure you have the
commandbox-dotenv
module installed.
b
Yep, my guess is you did not reinstall the dotenv module. The behavior of reading an
.env
file is NOT core to CommandBox. Only installing that module provides that behavior.
Also Java SDK is in the path:
This doesn't mean much. Just because a car is in my drive way, doesn't mean it's the one I'll be driving today. On Windows there is a look up order like • check for
jre
folder in same directory as
box.exe
• Check Windows registry to see what default java version is installed • Start digging through JAVA_HOME, JAVA_JRE, PATH, etc env vars When you just run
Copy code
java -version
from the command line, all that's proving is that your
PATH
env var lists that jdk bin folder first, which is not necessarily the same as what CommandBox uses to find Java.