UnsupportedClassVersionError « Exception « Java Thread Q&A

Home
Java Thread Q&A
1.concurrency
2.Development
3.Exception
4.Notify
5.Operation
6.Socket
7.State
8.synchronize
9.Thread Safe
10.ThreadPool
Java Thread Q&A » Exception » UnsupportedClassVersionError 

1. Tinyos Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file    stackoverflow.com

When I use make command, like make mica2, in TinyOS. The following problem will occured: Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version n umber in .class file

    at java.lang.ClassLoader.defineClass1(Native Method)
 ...

2. Exception in thread "main" java.lang.UnsupportedClassVersionError: danbikel/parser/Trainer (Unsupported major.minor version 50.0)    stackoverflow.com

I'm trying to run a parser built in Java, but every time I try to use the class, I get the above error ("Exception in thread "main" java.lang.UnsupportedClassVersionError: danbikel/parser/Trainer (Unsupported major.minor ...

3. Exception in thread "main" java.lang.UnsupportedClassVersionError: a (Unsupporte d major.minor version 51.0)    stackoverflow.com

I installed JDK7, a simple hello word program gets compile but when I run this I got following exception.

Exception in thread "main" java.lang.UnsupportedClassVersionError: a (Unsupporte
d major.minor version 51.0)
    ...

4. Exception in thread "main" java.lang.UnsupportedClassVersionError: hi (Unsupport ed m    java-forums.org

THE ERROR MSG: E:\>javac hi.java E:\>java hi Exception in thread "main" java.lang.UnsupportedClassVersionError: hi (Unsupport ed major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknow n Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source) i am using orcle 10g in ...

5. Exception in thread "main" java.lang.UnsupportedClassVersionError    forums.oracle.com

Hi, I'm new to Java and I've migrated from C# developing. I'm using using both NetBeans and Eclipse to develop my java applications but I can't get them to run outside the IDE. I will use the standard HelloWorld application to describe the problem. Eclipse creates 2 files in the HelloWorld folder: src/HelloWorld.java and bin/HelloWorld.class I tried from the commands prompt: ...

6. Exception in thread "main" java.lang.UnsupportedClassVersionError: ATMCaseS    forums.oracle.com

Hi, I received this error below when I run my very first java class file. Also, I also have Oracle 10.2.0.1 installed on my PC. Could someone advise what I need to do to fix it? Thanks, C:\examples\ch01\ATM>java ATMCaseStudy Exception in thread "main" java.lang.UnsupportedClassVersionError: ATMCaseStudy (Unsupported major.minor version 49.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) ...

7. Exception in thread "main" java.lang.UnsupportedClassVersionError: hi    forums.oracle.com

I think you are running your java program with different compiler compliance level and different jre version. Means suppose that if you set the jre version as JRE 5.0 and compiler compliance level as jdk1.6.0 then whenever you try to run your program with these settings you will get this error. So once check your jre version and compiler version and ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.