


in your case it looks like that you are using JDK 1.6 for compilation and there is no JRE6 available in your machine. if you are using eclipse then check your java compiler setting and make source level 1.5 if you have JRE 1.5 and stated unsupportedclassversionerror comes when JRE used to execute program is lower than Java version used to compile.