JDK 10 cannot import javax.xml.namespace in Eclipse
问题 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 class. You can see in the attached screen shot, the QName class exist in JRE System Library, but the IDE keep complaining that QName cannot be resolved to a type. 回答1: 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