Home Answers Viewqa Java-Beginners exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0

 
 


pradeep
exception in thread main java.lang.unsupportedclassversionerror unsupported major.minor version 50.0
3 Answer(s)      3 years and 2 months 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"






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.









Related Pages:
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
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
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
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" 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 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
:\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
MAin error
MAin error  Error while running hello program in another dir rather in bin. path is already set. java -version jdk1.6.0_24 no error while compilation but @ d tym of runnin error in main class is generated Exception in thread
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
Please tel me .In my System Oracle9i and J2sdk1.6 are Installed.Why this problem occures and what is the solution?
Please tel me .In my System Oracle9i and J2sdk1.6 are Installed.Why this problem occures and what is the solution?  Exception in thread "main" java.lang.UnsupportedClassVersionError: select (Unsupporte d major.minor version 50.0
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
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
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
MS Access - JDBC
is Exception in thread "main" java.lang.UnsupportedClassVersionError: MSaccessConne ct (Unsupported major.minor version 50.0... to give the drivername and configure the odbc thats all but ur pro exception
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 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
Thread
Thread  Explain two ways of creating thread in java. Explain at three methods of thread class.   Java Create Thread There are two main... Create Thread There are two main ways of creating a thread. The first is to extend
itext version
the main method which must throws Exception. After that follow the simple steps find... itext version       In this program we are going to find version of  the iText jar file which
Thread
main(String [] args) { MyThread m=new MyThread("Thread Started... to the thread constructor eventhough we had created only one thread and if you say we have added to point to the current thread then why we have not added
Thread
Thread  class Extender extends Thread { Extender(Runnable run...(); } public void run(){ System.out.println("Extender Thread is Started :"); //new Thread(new Implementer()).start(); } } class Implementer
Thread
=" + i); } public static void main(string args[]) { A a = new A(); Thread t = new thread(a); t.start(); } } Is it possible to run above program with out...Thread  will this code work..? class A extends Thread { public
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
java runtime error - JDBC
driver this error is coming at runtime: Exception in thread "main" java.lang.UnsupportedClassVersionError: MainClass ( supported major.minor version 50.0).So... and determines that the major and minor version numbers in the file are not supported
problem with main - Java Beginners
a problem. when i compile it appears this message: java.lang.NoSuchMethodError: main Exception in thread "main" . Should i put a main in another file? And how can..., This is an applet code and applet doesn't have main method therefore compile it and run
Thread
;Java throw and throws Whenever we want to force an exception then we use throw keyword. the throw keyword (note the singular form) is used to force an exception. It can also pass a custom message to your exception handling module. Moreover
thread
thread  Hi what are the threads required to excute a programe except main threads? Thanks kalins naik
closing thread for jdk1.5 or higher versions - Java Beginners
closing thread for jdk1.5 or higher versions  Hi All, I am using jdk1.5 and higher version of java. I tried to destroy thread by using... in thread "main" java.lang.NoSuchMethodError how can i destroy the thread and how
change pdf version
Exception. After that follow the simple steps find the version: Create Rectangle... main(String[] args)throws Exception { System.out.println("Example... change pdf version      
exception
{ public static void main(String[] args)throws Exception { for (String s... arguments are not equalto two,throw a user defined exception "invalid parameter exception" ,otherwise display the two parameters.   Here is an example
exception
exception  example for numberformat exception   Hi Friend... main(String[] args) { try{ String st="Rose India...); } catch(Exception e){ System.out.println(e
Exception
Exception  whis is the Arithmetic Exception in java? or define Arithmetic Exception with exp?   Arithmetic Exception occurs, when you divide a number by zero. Example public class TryCatch { public static void main
Exception
); } } public static void main(String args[])throws Exception { FooException oo=new...Exception  public class FooException extends Exception { public..."); } public void calculate() throws FooException, Exception { try { int
exception
exception  Identify the reason for SQLException exception, which...; Try this: import java.sql.*; class InsertData{ public static void main..."); ps.executeUpdate(); } catch(Exception e
Jfree exception
....... Exception in thread "main" java.lang.ClassNotFoundException... void main(String arg[])throws Exception{ Class.forName
Jfree exception
....... Exception in thread "main" java.lang.ClassNotFoundException... void main(String arg[])throws Exception{ Class.forName
EXCEPTION
implements interface1,interface2{ public static void main(String []args
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
Exception
: class HelloWorld { public static void main(String[] args
Java Sleep Thread
Java Thread sleep() is a static method. It sleeps the thread for the given time in milliseconds. It is used to delay the thread. It is used in Applet or GUI programming for animation Java Sleep Thread Example public class
Java Thread : getState() Example
main(String[] args) { Thread th = new Thread(new ThreadGetState()); Thread...Java Thread : getState() Example This section explains how to get state of a thread  in java Thread. Thread  getState() : Suppose you want to know
JAVA THREAD - Java Beginners
main(String ar[]) { Thread th = new Thread(new RunnableThread...: class kj implements Runnable { public static void main(String ar[])throws Exception { int res=0; res=fgh(0,5)+fgh(5,10); System.out.println("Result"+ res
Thread Deadlocks - Java Tutorials
Thread Deadlock Detection in Java Thread deadlock relates to the multitasking... is possible. In other words, a situation where a thread is waiting for an object lock that holds by second thread, and this second thread is waiting for an object
Green Thread - Java Beginners
thread), but VM technology has advanced significantly since version 1.1 and any... of Green Thread in java. Thanks in advance...  Hi friend Green threads... the years. This is simple program of thread public class ThreadExample
Get Current Thread
Get Current Thread       A Thread is the independent path of execution in a program. Many thread runs concurrently with a program. Some threads are Multithread
Thread and Process - Java Beginners
Thread and Process  Dear Deepak Sir, What is the diffrence between Thread and Process.Give an example with explanation. Thnaks & Regards... space; a thread doesn't. Threads typically share the heap belonging to their parent
Related to weblogic server8.1
.\myserver.wlnotdelete\extract\myserverfirstApp_firstApp. java.lang.UnsupportedClassVersionError: WelcomeServlet (Unsupported major.minor version 50.0...) at java.lang.Thread.startThreadFromVM(Ljava/lang/Thread;)V(Unknown Source) plz tell me
Thread - Java Beginners
Thread  Can i ask a thread method that will input two names using... java.awt.*; public class JoptionThreadDemo{ public static void main(String...()); } }; Thread appThread = new Thread() { public void run() { try
Java Thread : isAlive() method
Exception { Thread thread = new Thread(new ThreadIsAlive()); thread.start...Java Thread : isAlive() method In this tutorial you will learn how to use isAlive() method in java thread. isAlive() method : When you are running many

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.