Similarly if you compile Java program in Java 1.7 it will create class file with major version 51.0 and if you run that on lower java version you will get java.lang.unsupportedclassversionerror HTH share|improve this answer answered Jun 18 '14 at 16:29 Matthew Wise 831815 add a comment| up vote 1 down vote You have compiled your Java class with JDK 7 and share|improve this answer answered May 22 '13 at 18:53 James Drinkard 5,25185190 add a comment| up vote 0 down vote Deleting the project specific settings files (Eclipse workspace/project folder/.settings/) from the Then I found out that I can provide the compiler version in the Ant script.

i.e. He showed me where to look. Hi I am trying to run my program and getting below error:java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at JRE is a component in NetBeans/Eclipse/standalone that is going to provide you with libraries, JVM, Java plugins & Java web start.

You definitely have either a stale .class file laying around somewhere or you're getting a compile-time/run-time mismatch in the versions of Java you're using. In this java tutorial we will see what is UnsupportedClassVersionError in Java? As you are getting Unsupported major.minor version 51.0 and version 51.0 corresponds to J2SE 7 you have most probably compiled your code in Java 7 and trying to run it using So if a class file has version 48.0 it means that major version of class file is "48" and minor version is "0", which tells us that JDK 1.4 has been

September 24, 2015 at 7:50 AM Anton Sheihman said... Where is shared and final layout in the security Editor Who is the highest-grossing debut director? Difference between DOM and SAX Parsers in Java How to read and write Images in java using ImageIO... A: If you compile an application using javac in Java 7, the resulting classfiles will have the 51.0 version number.

Other Java debugging and troubleshooting articles How to remote debugging Java application in Eclipse 10 Java debugging tips in Eclipse IDE How to fix java.util.NoSuchElementException in Java How to fix java.sql.SQLException: share|improve this answer edited Jul 12 '14 at 20:29 Peter Mortensen 10.3k1369107 answered Jan 7 '14 at 6:43 user3168034 7111 add a comment| up vote 6 down vote I have faced jre is Java RunTime environment , To create java apps , you need jdk as well –CyprUS Apr 30 '12 at 11:30 yes i did, and now my path My JDK version are 1.6.20, Please help me to fix this error.

How to Create File and Directory in Java Example -... I found an expert in the building and he was able to point Eclipse to the same JRE as my command line. It could happen with some new libraries. If you like this post you may find my other tutorial how java hashmap works, why String is immutable in java, why wait and notify needs to call from synchronized context

For example, if my username is bruno and there is a .profile file in /Users/bruno/, all of its contents will be executed during the log-in procedure. Check if you have JDK 1.6 or not, because Murex currently support ava 1.6.* or higher. Hello, I am getting following error message :Exception in thread "main" java.lang.UnsupportedClassVersionError (Unsupported major.minor version 48.0), while running a Java application? UNIX command to find symbolic link or soft link in...

more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed Example of UnSupportedClassVersionError in Java You can easily reproduce UnSupportedClassVersionError by using javac of higher JDK and "java" from lower Java version. delete projects Bin directory Clean reBuild Still not working? i m using jdk 1.7.0 –ERJAN May 1 '12 at 8:30 17 This happened to me on Mac OS X when I was having problems due to the weird Apple

So if you are using multiple third party jars in your application you find that it comes at a particular part when JVM tries to load a class from a particular As for me, it's 1.6 for jre 1.6 –Sam Sep 25 '13 at 14:58 4 This may occur when compiler source is set in non-compliance with currently compiling JRE/JDK. Replacing a pattern with a string How do you grow in a skill when you're the company lead in that area? share|improve this answer edited Jun 19 '15 at 11:01 answered Aug 6 '13 at 10:24 Andreas L. 966815 In a very typical situation, it is really helped thax Andreas

How do I fix it? In order to solve java.lang.unsupportedclassversionerror unsupported major.minor version 49.0 , 50.0 or 51.0 we need to first understand What is major and minor version of class file in Java. Eventually, this answer solved the problem –Raghav May 13 '15 at 18:38 add a comment| up vote 29 down vote This error means you're trying to load a Java "class" file Then restart Eclipse.

I am getting java.lang.unsupportedclassversionerror unsupported major.minor version while building by Java application using ANT build file.

you can run your Java 5 binary or JAR into Java or JRE 6 but vice-versa is not true. If you want to develop Java programs then install the java-1.7.0-openjdk-devel package. Join more than 21000 subscribers... How to iterate over HashSet in Java - loop or trav... Follow him on Twitter, or befriend him on Facebook or Google Plus. Difference between static and non static nested cl... 20 EJB 3.0 Interview Questions and Answers - Java ... But that didn't work for me. Should it works?

My solution was to set environment variable PATH by adding pathname C:\glassfish3\jdk7\bin in front of the existing PATH setting. share|improve this answer answered Dec 2 '12 at 15:42 Infernoz 451 6 -1. How to convert Hexadecimal to Decimal, Binary and ... yet i still have this "unsupported minor version 51.0" error do you think i should install older version of jdk? share|improve this answer answered Nov 26 '12 at 19:39 user1623624 9413 add a comment| up vote 3 down vote It means tha...

Windows Just install appropriate Java SE Development Kit library from the Oracle site or install share|improve this answer edited Apr 4 '15 at 13:03 answered Apr 4 '15 at 12:16 kenorb Only Sun can specify what range of versions a JVM implementation conforming to a certain release level of the Java platform may support." For example: JDK 1.2 supports class file formats We are still running on Java 1.5 but the build used to work before. Make sure the JDK home path is set to 1.8 Restart Intellij...