rt.jar META-INF/MANIFEST.MF
<p>I am trying to find url for MANIFEST.MF of java runtime (rt.jar).</p>

<p>This method does NOT work:</p>

<p>searching through enumeration returned by</p>

<pre><code>classLoader.getResources("META-INF/MANIFEST.MF");
</code></pre>

<p>This method DOES work:</p>

<p>get URL by</p>

<pre><code>url = classLoader.getResource("java/io/File.class");
</code></pre>

<p>and then</p>

<pre><code>url = new URL( url, "../"); // to io
url = new URL( url, "../"); // to java
url = new URL( url, "../"); // to root
url = new URL( url, "META-INF/MANIFEST.MF");
</code></pre>

<p>and it is correct since I can read Manifest from it.</p>

<p>I am a bit confused why using simple getResources does not work ?</p>

<p>My platform: Mac OS X 10.8.2 (up to date), oracle java (up to date):</p>

<p>java version "1.7.0_15"
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)</p>
