java.lang.UnsupportedClassVersionError: (Unsupported major.minor version 50.0)
java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 error comes in Java environment
when you compile your Java file in a higher Java version e.g. Java 1.6 and then trying to run same Java Code in lower version e.g. Java 1.5. Java is backward compatible
Every Java release has a major source version as shown below table
Java Version Major Version
Java 4 48.0
Java 5 49.0
java 6 50.0
java 7 51.0
How TO Solve it ?
to solve it you have to run the code correct Java version. To adapt it you can try
to check it you can run in console "java -version"
2) IF you are using Eclipse IDE . you can check the compilation version by Windows --> preferences --> java --> compiler
No comments:
Post a Comment