title: How to get access multiple resource files with the same name?
body: <p>Suppose I have two packages p1 &amp; p2 with resource named <code>abc.properties</code>: <code>com.example.p1\abc.properties</code> and <code>com.example.p2\abc.properties</code>. </p>
  
  <p>After the program compiled I can only access to <code>com.example.p1\abc.properties</code> using <code>getClass().getResource(“abc.properties”)</code>, because of classpath order.</p>
  
  <p>Is there any way to get access to another file (<code>com.example.p2\abc.properties</code>)?</p>
  
  <p><strong>UPD:</strong> I found packaged jar structure the following:
  <code>
     p1-1.0.jar:
        com.example.p1
        META-INF
        abc.properties
     p2-1.0.jar:
        com.example.p2
        META-INF
        abc.properties
  </code>
  So, in fact, code like this <code>getClass().getResource(“/com/example/p1/abc.properties”)</code> didn't worked for me</p>