Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Java modules: split packages with JRE on build path?(I'm getting java.lang.module.ResolutionException and apparently one of the modules are in JRE)
Java modules: split packages with JRE on build path? [message #1830146] Fri, 17 July 2020 20:46
Lucas Rabello is currently offline Lucas RabelloFriend
Messages: 3
Registered: July 2020
Junior Member
Hello,

I'm new using Eclipse for Java EE (4.15.0) + Maven + Java 11, I'm trying to implement a modular project for the 1st time.

I'm trying to run a simple JUnit test and I'm getting the following error:

java.lang.module.ResolutionException: Modules javaee.api and java.xml export package javax.xml.stream.util to module org.mockito


javaee.api module was indeed declared in my module-info.java and declared in my pom.xml. But I didn't declare java.xml. Apparently it comes from JRE System Library in the module path from the Java Build Path as shown in the attached screenshot.

What I'm supposed to do in this case? Should I generate a custom JRE without java.xml so I can use in this workspace? Or can eclipse automatically do that for me?

Thanks
Previous Topic:Format Recent Workspaces Label
Next Topic:Running Eclipse Marketplace leads to error message
Goto Forum:
  


Current Time: Thu Apr 25 13:52:11 GMT 2024

Powered by FUDForum. Page generated in 0.02703 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top