![java 51.0 java 51.0](https://4.bp.blogspot.com/--HVOXxXvWOA/Vv1B401B1CI/AAAAAAAAFfs/jL4yLSc6yz0qrWwGVfrIkTRkkIkmDBpLA/s320/Core%2BJava%2BVolume%2B1%2B10th%2BEdition.jpg)
JAVA 51.0 HOW TO
How to fix an Unsupported major.minor version 51.0 in Eclipse
![java 51.0 java 51.0](https://2.bp.blogspot.com/-ozkv_cxRFE8/WmHFq5xQqFI/AAAAAAAAKGw/xgJ4AJR4GhIJYSrABj_MJBFs04HGZlHvQCLcBGAs/s640/Eclipse%2B-%2BUnsupported%2BMajor%2BMinor%2BVersion%2BError.png)
You would also be fine if you are running on Java 8, but don't run the program on Java 6 or lower version. You need to install 32-bit or 64-bit JDK 1.7 or JRE 1.7 version depending upon whether you are running on 32-bit or 64-bit OS like If you are running on Windows 7 or Windows 8 then install a 64-bit version of JDK. Since : Unsupported major.minor version 51.0 clearly says that this file needs, at least, Java 7 or higher to run. Once you got that, just run your program again. Upgrade JRE to get a version the same or higher than the version you have used for compiling your project. Simplest solution to fix Unsupported major.minor version 51.0 error changes your Java virtual machine. When JRE or JVM which is running the class doesn't able to understand the class file version they throw : XXX : Unsupported major.minor version 51.0 error, where XXX is the name of your class which has an incompatible version. In order to run that class file, your JRE must understand that version. When you compile a Java source file, it creates a class file and adds the class file version into it. You can use javac -target option to create a class file for all JRE up-to-the JDK versions you are using for compilation.įor example, if you are compiling your Java source file into JDK 1.7 then you can create class files to run on JDK 1.1, 1.2, 1.3, 1.4, 1.5, and 1.6 version, but you cannot create class files compatible with Java 1.8. There are two ways to solve this problem, first make sure you run your Java program in the same or higher version of JRE, on which it has compiled, and second use the cross-compilation option to create a class file compatible to a lower JRE. Unsupported major.minor version 51.0 error comes when you run a class file created using Java 1.7 (major version 51.0) into a lower JRE version e.g.