title: Java - running cmd
body: <p>I'm trying to run a simple java test code. I'm getting a "can not find or load main class file "(something like that)</p>
  
  <p>The tutorial I'm following uses this command </p>
  
  <pre><code>-&gt; javac name.java (javac doesn't work, using -&gt;java ..)
  -&gt; dir (shows the classname as a file)
   &gt; java classname
   &gt; outputs "hello world"
  </code></pre>
  
  <p>I can't seem to get past the ->java running.java</p>
  
  <pre><code>class apples //everything begins with a class - need this to do anything
  {
      public static void main(String args[])//method
      {
          System.out.println("Hello World");
      }   
  }
  </code></pre>