The package org.w3c.dom is accessible from more than one module: , java.xml

前端 未结 7 1115
野性不改
野性不改 2021-01-03 19:37

I am unable to import org.w3c.dom.NodeList package to Eclipse. It is showing

The package org.w3c.dom is accessible from more than one mo

7条回答
  •  梦谈多话
    2021-01-03 19:53

    Just open the configure build path and verify the modules which are all you have added as part of the project, which contains the class files as *

    org.w3c.dom

    This error, we usually gets in Java due to same kind of multiple API packages added in one project.

    As, am using the same version as you mentioned, am not facing any issues., so just make sure that you don't have any duplicate modules.

提交回复
热议问题