• CXF安装和配置时出现Exception in thread "main" java.lang.UnsupportedClassVersionError:异常?


    异常信息:

    C:Users>wsdl2java -h
    Exception in thread "main" java.lang.UnsupportedClassVersionError: org/apache/cxf/tools/wsdlto/WSDLToJava : 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 sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)
    

    异常原因:apache-cxf-3.2.1不支持JDK1.7,支持JDK1.8
    解决方法:
    方法一:使用较低版本cfx(比如apache-cxf-3.1.16)
    方法二:使用较高版本JDK(JDK1.8)

  • 相关阅读:
    5.9上午
    5.4下午
    5.4上午
    5.2上午
    4.19下午
    4.18上午
    4.17下午
    4.17上午
    4.12下午
    4.13下午
  • 原文地址:https://www.cnblogs.com/tengpengfei/p/10453934.html
Copyright © 2020-2023  润新知