日期:2014-5-20 浏览次数:20083次

各位大侠,这是什么错误

C:\java\Coding> javac   SimpleConstructor.java

C:\java\Coding> java   SimpleConstructor
Exception   in   thread   "main "   java.lang.UnsupportedClassVersionError:   SimpleConstru
ctor   (Unsupported   major.minor   version   49.0)
                at   java.lang.ClassLoader.defineClass0(Native   Method)
                at   java.lang.ClassLoader.defineClass(Unknown   Source)
                at   java.security.SecureClassLoader.defineClass(Unknown   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)


------解决方案--------------------
找不到main方法