Dave Merrill
06/26/2023, 3:27 PMbox version, I got This application requires a Java Runtime Environment 1.8.0
I want to update CommandBox to its latest, without breaking CF.
What's the right set of steps to do that?cfvonner
06/26/2023, 4:10 PMbox.exe and jre folder wherever you currently have box.exe stored. That's the easiest way to guarantee that you have the latest CommandBox/JRE combination.Dave Merrill
06/26/2023, 4:32 PMcfvonner
06/26/2023, 4:33 PMcfvonner
06/26/2023, 4:35 PMcfvonner
06/26/2023, 4:39 PMserver.json what JRE to use for that particular server (whether ColdFusion or Lucee). CommandBox can download and install the openJDK version specified for you and run your server using that JDK.Dave Merrill
06/26/2023, 5:53 PMcfvonner
06/26/2023, 5:59 PMDave Merrill
06/26/2023, 6:57 PMbdw429s
06/27/2023, 4:56 PMbdw429s
06/27/2023, 4:56 PMbdw429s
06/27/2023, 4:57 PM<jre path="./jre/;%JAVA_HOME%;%JRE_HOME%;%JDK_HOME%;%PATH%" minVersion="1.8.0" maxVersion="15.0.0" />
I'm curious if that message came from Launch4jbdw429s
06/27/2023, 4:57 PMbdw429s
06/27/2023, 4:58 PMbdw429s
06/27/2023, 4:58 PMDave Merrill
06/29/2023, 3:00 PMbox version ?
None of the expressions in your <jre path=... statement resolve to anything except %PATH%, whose resolution doens't include any mention of "java" or "jre".
So, I think it must be the one CommandBox is using.
Does that make sense?
Bottom line, installing CommandBox latest with the new jre in the folder with seems right.bdw429s
06/29/2023, 5:48 PMinfo command will show you what version of Java from what folder is being used.bdw429s
06/29/2023, 5:49 PM-clidebug argument will also output the JRE in use in the first few lines of debug outputbdw429s
06/29/2023, 5:50 PMdoens't include any mention of "java" or "jre".a folder called
java has never been any sort of convention, but a folder called jre is and it's listed right here:
./jre/
as the first place that's checked