I have the JRE bundled Mac Install. unzipped it to get a file called box and a jre folder… what do I do next? Can’t find any any of the docs (all windows based)
Is anyone able to point me to a guide, or give a quick rundown on how I run commandbox on a Mac?
They may happen to have examples to use Windows (because I wrote them, mostly and I use Window but they apply to all operating systems.
The long and short of it is simply to make the “box” binary executable and then run it if you don’t have Java installed on your Mac, you’ll need to keep the JRE in the same relative folder as the box binary. We recommend adding it to your /usr/bin folder so it is global and can be called from anywhere.
If I downlod and run I am getting the following errors:
/Users/jason/Commandbox/box: line 86: /Users/jason/Commandbox/jre/bin/bin/java: No such file or directory
/Users/jason/Commandbox/box: line 86: exec: /Users/jason/Commandbox/jre/bin/bin/java: cannot execute: No such file or directory
logout
And if I try to install with Homebrew, I get the following:
Hm, maybe one of our Mac users can chime in. Luis is using CommandBox on his Mac daily and I think he used Homebrew to install it.
Regarding the first error, which version did you download? If it was the JRE version, is the JRE folder next to the binary. Actually, come to think of it-- someone reported and fixed a bug that affected the Mac version. Here it is: