How to get Jar File Path
<p>I have an <strong>Verification.jar</strong> file which is checking some conditions in excel file. I want ot <strong>create a folder</strong> called Log at the same level where that <strong>Verification.jar</strong> is present.</p>

<p>Thanks in Advence.........</p>

<p><strong>EDIT</strong></p>

<p>I am Having Folders as follows  </p>

<p><strong>" Verification"</strong>:- Build,dist,lib,nbproject,src,Test,build.xml</p>

<p><strong>"Build"</strong> Contains Classes folder</p>

<p><strong>"dist"</strong> contains <strong>Verification.jar</strong> and Lib folder</p>

<p><strong>"lib"</strong> Contains library files</p>

<p>I want to find the path of Verification.jar and create the Folder called <strong>Output</strong> .</p>

<p>If i change the drive it should create the folder at the same level where <strong>Verification.jar</strong> is present.</p>

<pre><code> String path= getClass().getResource("").getPath();
</code></pre>

<p><code>Output:--getPath:/C:/Java/jdk1.6/bin/Verification/lib/</code></p>
