Thanks, Andreas. I hadn’t tried that, but have just done so after reading your post.
No change, alas.
Another test I’ve just done (with lucee-express-6.1.0.243 as it comes out-of-the-box) is to create a new registry key,
“HKLM\SOFTWARE\JavaSoft\Java Runtime Environment”
The key is then populated with the same values as are in the key
“HKLM\SOFTWARE\JavaSoft\JDK”
Still the issue persists.
Please note my 2 earlier remarks:
- I had the same issue with Lucee-express-5.4.2.17. That was resolved by editing the file lucee-express-5.4.2.17\startup.bat, replacing
“javaKey=HKLM\SOFTWARE\JavaSoft\Java Runtime Environment”
with
“javaKey=HKLM\SOFTWARE\JavaSoft\JDK”
Double-clicking on startup.bat was enough to get Lucee started. There was no need to do anything about setenv.bat.
- Setting the Java environment variable is probably not the issue. To see how I arrive at this conclusion, edit lucee-express-6.1.0.243\startup.bat by adding the lines
echo Java directory found
echo %javaDir%
pause
directly after the line
SET JAVA_HOME=%javaDir%
When you then double-click lucee-express-6.1.0.243\startup.bat, you get a CMD screen saying:
Java directory found
C:\Program Files\Java\jdk-17
Press any key to continue . . .
Press [ENTER] to continue, and Lucee-express-6.1.0.243 fails to start.