JDK 10 cannot import javax.xml.namespace in Eclipse

前端 未结 4 1825
孤街浪徒
孤街浪徒 2020-12-19 11:39

It\'s very strange. I am moving a dynamic web project from Java 8 to Java 10.

The last thing I cannot get the dependency resolved is the javax.xml.namespace.QName cl

4条回答
  •  难免孤独
    2020-12-19 12:11

    Try to change the order of elements on your classpath. The JRE must be before the Maven Dependencies. That fixes the issue.

    My guess is that the Java 10 compiler notices that you're trying to replace internal classes (java.xml.namespace) with code from JARs and it doesn't like that.

提交回复
热议问题