title: Package accessible from more than one module: <unnamed>
body: <p>When trying to register an MBean in JMX Console I'm getting the following error message:</p>
  
  <pre><code>The package javax.management is accessible from more than one module: &lt;unnamed&gt;, java.management
  </code></pre>
  
  <p>I'm using Eclipse and I have no <code>module-info.java</code> file in my project structure.</p>
  
  <p><a href="https://i.stack.imgur.com/FyBQh.png" rel="noreferrer"><img src="https://i.stack.imgur.com/FyBQh.png" alt="enter image description here"></a></p>
  
  <p>The error disappear when I comment my dependency for Java EE API, but the <code>javax.management</code> package is not part of the JAR.</p>
  
  <p><a href="https://i.stack.imgur.com/WPCD0.png" rel="noreferrer"><img src="https://i.stack.imgur.com/WPCD0.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/CJqoW.png" rel="noreferrer"><img src="https://i.stack.imgur.com/CJqoW.png" alt="enter image description here"></a></p>