Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Conflict with wildfly 25 runtime library and openjdk 17 library

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have an eclipse (Version: 2021-09 (4.21.0)) project and I am getting "The package org.w3c.dom is accessible from more than one module: unnamed>, java.xml".

The org.w3c.dom is in java.xml which is in the jre system library (openjdk-17) on the build path. The org.w3c.dom is also in the module xercesImpl-2.12.0.SP03.jar which is included in the wildfly 25 runtime library added to my build path.

I need the xerces classes from the jar for my project, but the new jdk enforces the rule that you can't have the same package names in 2 jars.

How can I fix this? Note that I don't use maven so I need a way to exclude the "org.w3c.dom" classes from either the jar or from jdk17.

Thanks in advance.
reply
    Bookmark Topic Watch Topic
  • New Topic