title: Java "Could not find or load main class <Class Name>
body: <p>I have a lot of java classes in school. At the beginning of September, I re-formatted my laptop to Windows 10 (it was Windows 10 before as well).</p>
  
  <ul>
  <li>BEFORE re-formatting: Everything was running perfectly fine</li>
  <li>AFTER re-formatting: I installed jdk 8u101 x64 and NetBeans 8.2.(I was using Netbeans before as well and an older version of jdk, if I'm not wrong).</li>
  </ul>
  
  <p>I open my project that I wrote on lab in my school, and when I press build and run it, it gives me the error:</p>
  
  <pre><code>Could not find or load main class &lt;Class Name&gt;
  </code></pre>
  
  <p>I tried to create a new project just to see if something is wrong with the code I took from school, but I got the same problem. Could you please help me solve the problem?</p>