5 Replies Latest reply on Jan 11, 2017 4:48 PM by Dalibor.Topic-Oracle

    Using JAXB with JRE 9-ea+139

    Markus KARG

      My application is using JAXB and runs well on JRE 8u102, but it fails to boot on JRE 9-ea+139:

       

      Exception in thread "pool-2-thread-1" java.lang.NoClassDefFoundError: javax/xml/bind/JAXB

              at application.chat.XmppChat.lambda$loadHistory$24(XmppChat.java:802)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(java.base@9-ea/ThreadPoolExecutor.java:1161)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(java.base@9-ea/ThreadPoolExecutor.java:635)

              at java.lang.Thread.run(java.base@9-ea/Thread.java:843)

      Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXB

              at jdk.internal.loader.BuiltinClassLoader.loadClass(java.base@9-ea/BuiltinClassLoader.java:366)

              at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(java.base@9-ea/ClassLoaders.java:185)

              at java.lang.ClassLoader.loadClass(java.base@9-ea/ClassLoader.java:424)

              ... 4 more

       

      How to solve that?