JDK版本问题Exception in thread java.lang.UnsupportedClassVersionError

1.Exception in thread \"main\" java.lang.UnsupportedClassVersionError: Hello (Exception in thread "main" java.lang.UnsupportedClassVersionError: Hello (Unsup
orted 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)是什么问题,怎么解决?

解决方案:

Path=E:\oracle\ora92\bin; C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin; [oracle9i对Path的修改,路经在前]%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem ;%JAVA_HOME%\bin ;Java的路径在后,所以系统首先选择的将不是安装的jre而是Oracle的jre了
只要把JAVA_HOME提前就行了,改正为
Path=%JAVA_HOME%\bin;E:\oracle\ora92\bin;C:\Program Files\Oracl

 

你可能感兴趣的:(exception)