5

When trying to run one of the modules, I see many messages of this error. For example:

java: module org.apache.commons.compress reads package javax.activation from both jakarta.activation and java.activation

What should I do?

IsaacLevon
  • 2,260
  • 4
  • 41
  • 83
  • 1
    Are you sure you’re running on JDK 11? According to my documentation, `java.activation` has been removed, hence, it can’t cause any problems. Which is also the reason why `jakarta.activation` now exports the `javax.activation` package. – Holger Nov 04 '21 at 08:56
  • I have `1111` in the parent-pom. Is it enough? – IsaacLevon Nov 04 '21 at 08:58
  • by the way, I see this error when running in IntelliJ (but I checked and all modules are set to JDK11) – IsaacLevon Nov 04 '21 at 09:05
  • 1
    Well, yes, it’s a runtime error message, not a compiler error. When you run `java --list-modules` on that JDK, you shouldn’t see a `java.activation@…` entry. In contrast to JDK 10, where it is right the first entry… – Holger Nov 04 '21 at 09:25
  • 1
    Hi! Could you manage to solve this problem? I have the same problem... – Kalman Jan 15 '23 at 19:04

0 Answers0