Home > Java > The Java UnsupportedClassVersionError

The Java UnsupportedClassVersionError

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

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: