title: Class not found exception in Java Reflection
body: <p>Hi I am using the following code from this site: <a href="http://java.sun.com/developer/technicalArticles/ALT/Reflection/" rel="noreferrer">http://java.sun.com/developer/technicalArticles/ALT/Reflection/</a> </p>
  
  <p>But when I am running it it showing exception <strong>java.lang.ClassNotFoundException: A</strong>
  May be I am going somewhere wrong Please help.
  Here is the code:</p>
  
  <pre><code>package com.Test;  
    class A {}
  
  public class instance1 {
         public static void main(String args[])
         {
            try {
               Class cls = Class.forName("A");
              System.out.println("gfsdga");
               boolean b1 
                 = cls.isInstance(new Integer(37));
               System.out.println(b1);
               boolean b2 = cls.isInstance(new A());
               System.out.println(b2);
            }
            catch (Throwable e) {
               System.err.println(e);
            }
         }
      }
  </code></pre>