[CommandBox-1.0.0.00002] Error while starting

While starting the command box, I am getting error. Here I have attached the CommandBox.log for your reference.

commandbox.log (499 KB)

Looks like an unsupported version of Java. What version do you have installed locally on your PC?

Unsupported major.minor version 51.0

Make sure you have Java 7 installed on your machine and that your environment variables point to it.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

I am not using PC, I am in OS X Mavericks 10.9.3 My Java version details are,

java version “1.6.0_65”
Java™ SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot™ 64-Bit Server VM (build 20.65-b04-462, mixed mode)

I can’t see any version like 51.0 in my java version info. Am I missing something?

I was using “PC” in the most generic sense possible-- that thing with blinking lights on your desk with a monitor and keyboard attached :slight_smile:

Like I said, you need Java 7 (1.7) and you’re on Java 6 (1.6).

The “51” comes from the compiled class files and refers to the class file format it was compiled with (Java 7 in this case). This Wikipedia page shows all the version numbers:
http://en.wikipedia.org/wiki/Java_class_file#General_layout

Your old version of Java is throwing an error because it doesn’t support that newer class file that was compiled with Java 7.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

Updated my Java version to 1.8.0_05 & rebuilt the Box-cli Git repo. Now it is working fine. Thanks a lot @Brad