Exception in thread "main" java.lang.NoClassDefFoundError:after setting PATh and CLASSPATH
<p>I have tried to write a program where i want to access class in a jar.</p>

<p>I am using netbeans as ide,Windows 7 os and have added jar in the libraries.
But i keep getting the error.</p>

<pre><code>Exception in thread “main” java.lang.NoClassDefFoundError:after setting PATh and CLASSPATH



I have set the PATh variable to my &lt;jdk directory&gt;/bin;
CLASSPATH to %CLASSPATH%;
and JAVA_HOME to &lt;jdk directory&gt;

&lt;jdk directory&gt; =C:\Program Files\Java\jdk1.7.2
</code></pre>
