title: java.lang.ClassNotFoundException for a specified class
body: <p>In my main I have the following statement</p>
  
  <p><code>Class booki = Class.forName("Book");</code></p>
  
  <p>which throws a <code>java.lang.ClassNotFoundException</code> exception</p>
  
  <p>when I use the full path like <code>Class booki = Class.forName("javatests.Book");</code> it is ok. </p>
  
  <p>The main class and the Book class are in the same package, I also tried using <code>import static javatests.Book.*;</code> but still it throws the exception if I don't set the full path <code>javatests.Book</code>. Can someone explain to me why?</p>