title: Two different .jar with same Package name and same Class name. How to get the one?
body: <p>In my project I have standard java system library with rt.jar that have class.</p>
  
  <pre><code>package javax.xml;
  
  public final class XMLConstants {
  
      private XMLConstants() {
      }
  
      public static final String NULL_NS_URI = "";
      public static final String DEFAULT_NS_PREFIX = "";
      ...
  }
  </code></pre>
  
  <p>And also included is stax-api-1.0.jar with class</p>
  
  <pre><code>package javax.xml;
  
  public class XMLConstants {
      public static final String DEFAULT_NS_PREFIX = "";
      public static final String XML_NS_PREFIX = "xml";
      public static final String XML_NS_URI = "http://www.w3.org/XML/1998/namespace";
      public static final String XMLNS_ATTRIBUTE = "xmlns";
      public static final String XMLNS_ATTRIBUTE_NS_URI = "http://www.w3.org/2000/xmlns/";
  }
  </code></pre>
  
  <p>And in third class I need to get NULL_NS_URI that looks like this</p>
  
  <pre><code>import javax.xml.XMLConstants;
  
  public myClass(){
  
      doSomethin() {
          ...
          XMLConstants.NULL_NS_URI
          ...
      }
  }
  </code></pre>
  
  <p>It gives error</p>
  
  <pre><code>NULL_NS_URI cannot be resolved or is not a field
  </code></pre>
  
  <p>And when I ctrl + click on XMLConstants in myClass eclipse takes me to class stax-api.jar.
  When I do same thing on colleague machine eclipse take him to rt.jar with no error because NULL_NS_URI is defined in that class.</p>