title: CodenameOne Class Not Found Error
body: <p>I wasn't sure if I was supposed to respond to this post (<a href="https://stackoverflow.com/questions/22729090/codenameone-stopped-working-after-build">CodenameOne stopped working after build</a>) or post a new one.</p>
  
  <p>The IDE that I am using is IntelliJ. When I open up a codename one project, it does not recognize that it is a codename one project (the codename one button is grey).</p>
  
  <p>I also get the following error when I try to run it in the device simulator: </p>
  
  <pre><code>Exception in thread "main" java.lang.ClassNotFoundException: com.codename1.impl.javase.Simulator
  </code></pre>
  
  <p>However, when I move the files into a new project and copy and paste the text into the main class, it runs. So there is no problem with the codename one configuration or my files. </p>
  
  <p>Why am I getting this error and why does it only work when I copy and paste it into a new project? </p>