exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0

Ads

 
 

Share on Google+Share on Google+

pradeep
exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0
3 Answer(s)      7 years ago
Posted in : Java Beginners
I am getting the below error when the class now.

java -version
java version "1.4.2_06"

javac -version
java version "1.6.0_10"






Ads
View Answers

April 7, 2010 at 12:25 PM


Hi Friend,

Please post your code.

Thanks


April 9, 2010 at 9:45 AM


my code is



class xxx
{
public static void main(String[] args)
{
System.out.println("Hello World!");
}
}

-->class is compling but runtime i am getting the exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0


August 28, 2011 at 2:11 PM


here are few steps to fix unsupportedclassversionerror 1) Find out due to which jar or class file this UnSupportedClassVersionError is coming? 2) Try to compile source code of that jar with the JDK version you are using to run your program, if source is available. 3) If you don't have source try to find the compatible version of that library. 4) Increase the JRE version you are using to run your program.


Ads









Related Tutorials/Questions & Answers:
exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 - Java Beginners
exception in thread main java.lang.unsupportedclassversionerror unsupported... java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 class xxx { public static void... java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 
exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0 - Java Beginners
exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0  I am getting the below error when the class now... java.lang.unsupportedclassversionerror unsupported major.minor version 50.0
Advertisements
How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version
error: Unsupported major.minor version 51.0 How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor version? thanks   Hi, Error...How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor
javax.servlet.ServletException: Database/DatabaseBean (Unsupported major.minor version 50.0) - JSP-Servlet
java.lang.UnsupportedClassVersionError: Database/DatabaseBean (Unsupported major.minor version 50.0... javax.servlet.ServletException: Database/DatabaseBean (Unsupported major.minor version 50.0...javax.servlet.ServletException: Database/DatabaseBean (Unsupported major.minor
exception in thread main java.lang.unsupportedclassversionerror in ubuntu
exception in thread main java.lang.unsupportedclassversionerror in ubuntu  Hi, In Ubuntu I am trying to run Java program and its throwing exception. exception in thread main java.lang.unsupportedclassversionerror in ubuntu How
exception in thread main java.lang.unsupportedclassversionerror in eclipse
exception in thread main java.lang.unsupportedclassversionerror in eclipse .... But it throws exception in thread main java.lang.unsupportedclassversionerror... version of JDK, but you are tying to run it with lower version of JDK. Please check
Exception in thread "main" java.lang.ClassCastException
Exception in thread "main" java.lang.ClassCastException  I am trying to connect the database. I am stuck with this exception that is getting thrown...) { sqle.printStackTrace(); } finally { try {stmt.close();} catch (Exception e
Exception in thread "main" java.lang.ClassCastException
Exception in thread "main" java.lang.ClassCastException  I am trying to connect the database. I am stuck with this exception that is getting thrown...) { sqle.printStackTrace(); } finally { try {stmt.close();} catch (Exception e
exception in thread main while running servlet
exception in thread main while running servlet  I got exception in thread main no such method error while running servlet. I have added servlet.api.jar file in classpath.my classpath is C:\Program Files\Apache Software Foundation
Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: TESTING is not mapped [FROM TESTING]
Exception in thread "main" org.hibernate.hql.ast.QuerySyntaxException: TESTING...(HiberTest.java:18) Exception in thread "main...)); } } } couldn't connect to tDB using, SQL statements. Exception in thread "main
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger  Hi, How to solve following error? Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/mail/util/MailLogger
Exception in thread
:\mail.jar SendMailTLSDFC Exception in thread "main" java.lang.NoClassDefFoundError...Exception in thread   Hi, I have created a java file for sending a file to my mail. I am using mail.jar file. I am able to create .class file
Exception in Thread
Exception in Thread    i am developing a rmi application in eclipse... client and generate connection with server i have following exception : Blockquote Exception in thread "RMI TCP Connection(idle
Main Thread and Child Thread
and Child Threads used in Programming. Main thread is automatically created when program runs. Child Thread gets created by the main thread . Java Main... 1 this thread is main 1 this thread is Child 2 this thread is Child 3
How to Differenciate Main Thread and Child Thread in Java
How to Differenciate Main Thread and Child Thread in Java  hi... Main Thread and Java Child Thread. Please Suggest any example or online link... in Java Programming Language. These are Java Main Thread and the Child Thread
java.lang.UnsupportedClassVersionError: Bad version number in .class file
java.lang.UnsupportedClassVersionError: Bad version number in .class file ... java.lang.UnsupportedClassVersionError: Bad version number in .class file... Error message: HTTP Status 500 - type Exception report message description
difference between main thread and child thread?
difference between main thread and child thread?  any one give correct exact difference.   in jsp 7 implicit objects are available those are 1:response->This denotes the data included with the HTTP Response. 2
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException  ... is clicking I getting the error : Exception in thread "AWT-EventQueue-0... { Image m; Thread t; NextPage(final String uname
how to solve the nullPointer Exception in main - Java Beginners
: Exception in thread "main" java.lang.NullPointerException...how to solve the nullPointer Exception in main  New to Java ,pls help me how fix Null pointer Exception in main: two files , split .java another
Java Exception Thread
Java Exception Thread     ... to Overcome this Thread Exception in Java Program In the preceding code, we... RunnableExample { public static void main(String args[]) { Thread threada = new
Version of excalibur-thread>excalibur-thread dependency
List of Version of excalibur-thread>excalibur-thread dependency
Version of excalibur-thread>excalibur-thread-api dependency
List of Version of excalibur-thread>excalibur-thread-api dependency
Version of excalibur-thread>excalibur-thread-impl dependency
List of Version of excalibur-thread>excalibur-thread-impl dependency
Version of excalibur-thread>excalibur-thread-instrumented dependency
List of Version of excalibur-thread>excalibur-thread-instrumented dependency
Version of com.cibuddy>main dependency
List of Version of com.cibuddy>main dependency
Thread
(Exception ex) { } } }; Thread mainth = new Thread(main... should produce the sum of 1 to 10, 11 to 20 and 21to 30 respectively. Main thread...); } catch(Exception ex) { } } }; Thread thread3 = new Thread
Unhandled Exception in Thread
Unhandled Exception in thread are thrown during the execution of the program... to rectify it is to change it. Example of Unhandled exception in Thread: class... compile-single: run-single: Exception in thread "main"
Version of com.lucidchart>thread-context dependency
List of Version of com.lucidchart>thread-context dependency
Version of com.lucidchart>thread-context-slf4j dependency
List of Version of com.lucidchart>thread-context-slf4j dependency
Version of excalibur>excalibur-thread dependency
List of Version of excalibur>excalibur-thread dependency
Version of com.amlinv>thread-utils dependency
List of Version of com.amlinv>thread-utils dependency

Ads

 
Advertisement null

Ads