问答详情
源自:4-7 应用 DOM4J 解析节点属性

执行这一句的时候报错 SAXReader reader = new SAXReader(); 麻烦老师帮忙看一下

Exception in thread "main" java.lang.UnsupportedClassVersionError: org/dom4j/io/SAXReader : Unsupported major.minor version 52.0

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

at java.lang.ClassLoader.defineClass(ClassLoader.java:800)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)

at java.net.URLClassLoader.access$100(URLClassLoader.java:71)

at java.net.URLClassLoader$1.run(URLClassLoader.java:361)

at java.net.URLClassLoader$1.run(URLClassLoader.java:355)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:354)

at java.lang.ClassLoader.loadClass(ClassLoader.java:425)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)

at java.lang.ClassLoader.loadClass(ClassLoader.java:358)

at nyist.tian.servlet.Demo.main(Demo.java:25)


提问者:慕慕3824972 2018-09-05 20:55

个回答

  • 慕盖茨740922
    2018-09-07 16:54:51

    JDK版本问题,换成视频中的jdk7或者jdk8就可以了