I wasn't sure if I was supposed to respond to this post (CodenameOne stopped working after build) or post a new one.
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).
I also get the following error when I try to run it in the device simulator:
Exception in thread "main" java.lang.ClassNotFoundException: com.codename1.impl.javase.Simulator
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.
Why am I getting this error and why does it only work when I copy and paste it into a new project?