Contentbox express problems
I'm on a new laptop, I have commandbox and everything is working fine but I downloaded confentbox express, and I'm getting The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program. I'm on win11, express has worked before, my jdk is all fine I think. What can I do?
g
garciadev
04/27/2022, 2:49 PM
@Formiko for some reason it is not detecting that on your PC. The quick fix is to just grab a JRE folder and copy it into the root of the ContentBox Express folder and try starting it again. There are instructions in RUNNING.txt that talk about creating a setenv.bat file, but its probably easier just to copy that JRE folder over.
Basically you will need to comment out line 87 in /webApps/ROOT/Application.cfc and copy the contents of /webApps/ROOT/config/datasource.cfm under that commented out line
Also, if the browser doesn't open for you, look at the terminal to get the bound port. For me, it was this
http-nio-8085
and the site came up at
<http://127.0.0.1:8085/>
b
bdw429s
04/27/2022, 5:39 PM
@Formiko Please don't cross post the same question in multiple channels 🙂
f
Formiko
04/28/2022, 3:46 AM
@garciadev I don't have a config.datasource.cfm in the /webApps/ROOT directory 😢
But I did comment out line 87
in my bin directory i copied over jre1.8.0_33.1-- still didn't work
"The JRE_HOME environment variable is not defined correctly
This environment variable is needed to run this program"
Should I adjust my sys env variable