java MainServer gives java.lang.UnsupportedClassVersionError: Unsupported major.minor version 51.0

Posted by Paradox on Ask Ubuntu See other posts from Ask Ubuntu or by Paradox
Published on 2012-10-19T04:28:05Z Indexed on 2012/10/19 5:18 UTC
Read the original article Hit count: 264

Filed under:

Compiling is easy but when using java to run the programs, it gives Exception found. I am using Ubuntu 12.04 without internet connections. Also, installed Oracle JDK7 and JRE7. Also did the update-alternatives command on java, javac and javaws. Changed the machine java in /etc/profiles. PATH is pointing to oracle java folder. I did many searches on Google about this topic but each time jdk and jre version are different. Also check version of jdk and jre using java -version and javac - version. Both of them are the same. The system also contains OpenJdk6 and OpenJdk7. So, how do I remove these errors?

© Ask Ubuntu or respective owner

Related posts about java