java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter

前端 未结 3 663
名媛妹妹
名媛妹妹 2021-02-07 07:56

After installing JDK9, I get this exception when running my Scala projects. Upgrading Scala to 2.12.2 also didn\'t resolve my problem.

3条回答
  •  野的像风
    2021-02-07 08:36

    To add to the previous answer I would like to refer to the following answer: https://stackoverflow.com/a/43574427/3751268. I think it covers in details which is the desired way to provide libraries like the jaxb.

    In particular for Scala, I add it like this to my libraryDependencies:

    libraryDependencies += Seq("javax.xml.bind" % "jaxb-api" % "2.3.0")
    

提交回复
热议问题