title: Cannot access class in test package from main package (Eclipse)
body: <p>I have a maven project in eclipse with a folder structure are follows - </p>
  
  <pre><code>   - Project
  
      &gt; src/main/java ..
  
      &gt; src/test/java ..
  </code></pre>
  
  <p>I found that when I try to initialize any class in the test package from my code in the 
  main package I get a classNotFoundException.</p>
  
  <p>I want to know why this happens and what is the reason for not allowing access to test classes from the main package ?</p>