title: Could not find or load main class Java
body: <p><strong>Good evening Stack Overflow!</strong></p>
  
  <p>I started learning Java quite a few days ago, but not using an IDE once my computer is a bit slow. So, I decided to use Sublime Text, and compile things using <strong>ant</strong> on the cmd, since it seems to be the most reasonable thing to do. </p>
  
  <p>Today I started ( at least tried ) to follow along a series of LWJGL tutorials (which are really cool), from ThinMatrix, but I can't manage to solve an error which I get every time I try to compile the 'project'.  </p>
  
  <p><strong>This is the structure of my project:</strong> </p>
  
  <ul>
  <li><p>LWJGL </p>
  
  <ul>
  <li>src
  
  <ul>
  <li>com
  
  <ul>
  <li>game
  
  <ul>
  <li>test<br>
  MainGameLoop.java</li>
  <li>renderEngine<br>
  DisplayManager.java</li>
  </ul></li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>build.xml</p></li>
  </ul>
  
  <p>And ladies and gentlemen... the build.xml (following Ant's official HelloWorld tutorial):</p>
  
  <pre><code>&lt;project name="LWJGL" basedir="." default="main"&gt;
  
  &lt;property name="src.dir"     value="src"/&gt;
  
  &lt;property name="build.dir"   value="build"/&gt;
  &lt;property name="classes.dir" value="${build.dir}/classes"/&gt;
  &lt;property name="lib.dir"    value="lib"/&gt;
  &lt;property name="jar.dir"     value="${build.dir}/jar"/&gt;
  
  &lt;property name="main-class"  value="com.game.test.MainGameLoop"/&gt;
  
  &lt;path id="classpath"&gt;
      &lt;fileset dir="${lib.dir}" includes="**/*.jar" /&gt;
  
  &lt;/path&gt;
  
  &lt;target name="clean"&gt;
      &lt;delete dir="${build.dir}"/&gt;
  &lt;/target&gt;
  
  &lt;target name="compile"&gt;
      &lt;mkdir dir="${classes.dir}"/&gt;
      &lt;javac srcdir="${src.dir}" destdir="${classes.dir}" includeantruntime="false" classpathref="classpath" /&gt;
  &lt;/target&gt;
  
  &lt;target name="jar" depends="compile"&gt;
      &lt;mkdir dir="${jar.dir}"/&gt;
      &lt;jar destfile="${jar.dir}/${ant.project.name}.jar" basedir="${classes.dir}"&gt;
          &lt;manifest&gt;
              &lt;attribute name="Main-Class" value="${main-class}"/&gt;
          &lt;/manifest&gt;
      &lt;/jar&gt;
  &lt;/target&gt;
  
  &lt;target name="run" depends="jar"&gt;
      &lt;java jar="${jar.dir}/${ant.project.name}.jar" fork="true"&gt;
          &lt;jvmarg value="-Djava.library.path=lib/natives-win" /&gt;
      &lt;/java&gt;
  &lt;/target&gt;
  
  &lt;target name="clean-build" depends="clean,jar"/&gt;
  
  &lt;target name="main" depends="clean,run"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>Every time I run <strong>ant</strong> on the command line, inside the root folder of my project, I get this:</p>
  
  <pre><code>[java] Error: Could not find or load main class com.game.test.MainGameLoop
  [java] Java Result: 1
  </code></pre>
  
  <p>I'm struggling to understand what is the root problem of this, I kinda sexually abused Google Search trying to find an answer on Java forums, Blogs, and even here...</p>
  
  <p>I don't usually like populating Stack Overflow with noob questions, but I have to admit I don't know what to do.</p>
  
  <p><strong>Thanks in advance!</strong></p>