Hello. New user to CommandBox.
If I want to use just the CommandBox binary, how or what do I edit to let the binary know where the path to my JRE is?
I’m on Windows 7 and the “JAVA_HOME” environment var points to “D:\jre1.8.0_05”.
Thanks, Che
Hello. New user to CommandBox.
If I want to use just the CommandBox binary, how or what do I edit to let the binary know where the path to my JRE is?
I’m on Windows 7 and the “JAVA_HOME” environment var points to “D:\jre1.8.0_05”.
Thanks, Che
Che!
That’s it, you just require a JAVA_HOME or JRE_HOME to be setup in your environment
Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408
ColdBox Platform: http://www.coldbox.org
ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox
OK. Why then when I run the box.exe am I getting redirected to “http://java.com/en/download/”?
I know JAVA_HOME is working since I’m using it for Railo/Lucee Express installs on my dev machine.
Thanks, Che
What happens when you go to a terminal and type Java -version
Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Luis, I get “‘Java’ is not recognized as an internal or external command”. I get what that means.
I’m not sure how to fix this since the “Environment Variables” is set. What’s odd is that my Railo/Lucee Express installs work.
Any ideas?
Thanks, Che
Railo/Lucee Express use an embedded JRE.
In Windows, you need to add the JRE to the “PATH” environment variable.
Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408
ColdBox Platform: http://www.coldbox.org
ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox
OK, after some googling, I also set the ‘Path’ “System Variable” and hardcoded the path with ‘D:\jre1.8.0_05\bin;’.
Now, when I type Java -version, I get a correct response.
I then clicked the ‘box.exe’ and was still redirected to ''http://java.com/en/download/.
FWIW, when I removed the “Java_Home” environment variable, Lucee express would not run. However, Railo express would run. perhaps only Railo is embedded.
OK. Since I already ran the JRE version of CommandBox, should I delete the C:\Users\user.CommandBox folder and start again?
You don’t have to. Also, note that on some windows system a restart is required
Luis Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com
P/F: 1-888-557-8057
Direct: (909) 248-3408
ColdBox Platform: http://www.coldbox.org
ContentBox Platform: http://www.gocontentbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Social: twitter.com/ortussolutions | twitter.com/coldbox | twitter.com/lmajano | twitter.com/gocontentbox
Actually, I’ve found that the Launch4J wrapper we use to create the Windows .exe file looks for registry entries, not environment variables. These registry entries should be added automatically if you use the Java installer provided by Oracle. Make sure you’ve actually run the installer for Java 1.7 or 1.8 and not just copied the folder from somewhere.
Thanks!
~Brad