title: IntelliJ Idea under Linux, No such file or directory on main class
body: <p>I'm running IntelliJ Idea under linux. I have created a project and a module inside it, and in that module I have a class (MyClass.class) and when I'm trying to run it from IDE, I get</p>
  
  <blockquote>
    <p>ERROR: MyClass.class (No Such file or directory)</p>
  </blockquote>
  
  <p>Can somebody explain me why IntelliJ Idea doesn't recognize the classes inside my module? I know it should be a problem regarding module settings but I can't figure it out. I'm using Ubuntu 11.10</p>
  
  <p>OK I place here the paths and everything for all to see :)</p>
  
  <p><strong>type</strong> : echo $PATH<br>
  <strong>Result:</strong>
  /usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/lib/jvm/java-7-openjdk-i386/bin:/usr/lib/jvm/java-7-openjdk-i386/bin:/usr/lib/jvm/java-7-openjdk-i386/bin</p>
  
  <p><strong>type:</strong> echo $JAVA_HOME
  <strong>Result:</strong><br>
  /usr/lib/jvm/java-7-openjdk-i386</p>
  
  <p><strong>type:</strong> ./idea.sh
  <strong>Result:</strong> 
  NOTE: If you have both Sun JDK and OpenJDK installed
  please validate either IDEA_JDK or JDK_HOME environment variable points to valid Sun JDK installation</p>