Archive

Posts Tagged ‘Java Development Kit’

The Java UnsupportedClassVersionError

March 26, 2013 Leave a comment

I was having an error when compile one piece of code within Eclipse.

java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version;/CareMonths, offset=6

Got some help from here, which thinks that the reason of the error is because of the unmatched jdk version. And of course, install it.

So tried a simple fix, and it works:

1. go to here download the right version, I am downloading the newest version because of my code.

2. In your eclipse, go to Window->preference->Java->Installed JREs.

From where you can find your current version& its path. Do ‘Add’ add the newest installed JDK <> . If you are using window, the default installation path is <C:\Program Files\Java\jdk1.7.0_17>. Check this version for your project.

 

boofcv_examples