Cannot run with Java 8 because it is not compatible
Cannot run with Java 11 neither 21 because de startup.bat look for “javaKey=HKLM\SOFTWARE\JavaSoft\Java Runtime Environment” and Java 11/21 records “HKLM\SOFTWARE\JavaSoft\JRE” or “JDK”
And there is not installer yet
(Relese 6.1.0.243)
I found this error in java 11:
-Djava.endorsed.dirs=C:\lucee61\endorsed is not supported. Endorsed standards and standalone APIs
in modular form will be supported via the concept of upgradeable modules.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Ok, I can run Lucee 6.1 Express Release 6.1.0.243:
- Download and install the new download of Lucee Release 6.1.0.243 (Jul 19, 2024) Express version
https://cdn.lucee.org/lucee-express-6.1.0.243.zip
(they removed the javakey from catalina.bat) - Download and install Java 11 (Lucee 6.1 is not compatible with Java 1.8)
- Adjust manually the next Windows environment variables:
a) PATH: remove any other java reference and include <java11_dir>\bin
b) JAVA_HOME: change to <java11_dir> - Fix catalina.bat file: remove all occurrences of the following string (java.endorsed.dirs is not compatible with java 11)
-Djava.endorsed.dirs=“%JAVA_ENDORSED_DIRS%” - Execute <lucee61_dir>\startup.bat
Ready, it is running.
I think the issue here is a root cause problem with the 6.1.* express builds: they embed Tomcat 8 instead of Tomcat 9 (which even the 5.4.* express builds came with). That sure seems a mistake. Can anyone confirm if it’s somehow intentional? (I’m not raising a bug report, since I can’t know the answer. But I will note that the 6.0* Express versions I checked DID have Tomcat 9.)
And that Tomcat version downgrade would seem to complicate things like what you worked around while ALSO changing the Java version that it supports (which is as much about Tomcat as about Lucee itself).
Does anyone know who is responsible for the Express installer build? So that we can ensure to get their attention on this, if appropriate?
I think the issue here is a root cause problem with the 6.1.* express builds: they embed Tomcat 8 instead of Tomcat 9 (which even the 5.4.* express builds came with). That sure seems a mistake.
I reported this on August 7. It causes an error every time Lucee starts up, due to some class being used that Tomcat 9 handles fine, but 8 can’t handle. See:
Nobody ever answered me.
OK, Toro. Thanks for clarifying. I’d seen (and replied on) one other note on the issue, but somehow I didn’t see yours there from Aug 7. And then as you know BKBK has opened a new thread trying to bring it still more attention. Let’s hope someone in a position of responsibility can attend to things in time.
There is a patch for this, but whom ever pulls the magic lever to move this to production needs to make it so.