Article - CS348994

Eclipse compilation issues and it throws reports error The package org.w3c.dom is accessible from more than one module in Windchill PDMLink

Modified: 28-Feb-2025   


Applies To

  • Windchill PDMLink 12.0 to 13.0
  • Java 11, Java 17, Java 21
  • Windchill Modularization - CS352018

Description

  • Eclipse compilation issues for import statements when using JDK11 and JDK17
  • Eclipse compilation error after upgrade to Windchill 12.x and using JDK11
  • Eclipse compilation error after upgrade to Windchill 13.0 and using JDK17
  • Eclipse compilation error after upgrade to Windchill 13.1 and using JDK21
  • Error after changing java from java 1.8 to Java 11, 17 or 21
    The package org.w3c.dom is accessible from more than one module: <unnamed>, java.xml 
  • modulepath is not used
  • Error occurring when below class files are imported  
    import javax.xml.XMLConstants;
    import org.w3c.dom.Document;
    
    The package javax.xml is accessible from more than one module: <unnamed>, java.xml
  • Here is list of classes causing issue
    javax.xml.parsers.DocumentBuilder
    javax.xml.parsers.DocumentBuilderFactory
    javax.xml.parsers.ParserConfigurationException
    javax.xml.validation.Schema
    javax.xml.validation.SchemaFactory
    javax.xml.validation.Validator
    javax.xml.XMLConstants
    org.w3c.dom.Document
    org.w3c.dom.Element
    org.w3c.dom.Node
    org.w3c.dom.NodeList
    org.xml.sax.ErrorHandler
    org.xml.sax.InputSource
    org.xml.sax.SAXException
    org.xml.sax.SAXParseException

     
This is a printer-friendly version of Article 348994 and may be out of date. For the latest version click CS348994