title: cannot run java .class file from cmd
body: <p>I have a java project with main class
  in this path:</p>
  
  <pre><code>C:\Users\tomer_000\Desktop\eclipse_tmp\
  </code></pre>
  
  <p>I have followed this <a href="http://www.skylit.com/javamethods/faqs/javaindos.html" rel="nofollow">tutorial</a></p>
  
  <pre><code>C:\Users\tomer_000\Desktop\eclipse_tmp\src\tomer1&gt;javac Test.java
  </code></pre>
  
  <p>I have checked and there are now two files:</p>
  
  <pre><code>Test.java, Test.class
  </code></pre>
  
  <p>I now try to run:</p>
  
  <pre><code>C:\Users\tomer_000\Desktop\eclipse_tmp\src\tomer1&gt;java Test
  </code></pre>
  
  <p>and get this error:</p>
  
  <pre><code>Error: couldn't find or load main class Test
  </code></pre>
  
  <p>I have defined PATH and CLASSPATH on my win8.</p>
  
  <p>I have tried:</p>
  
  <pre><code>PS C:\Users\tomer_000\Desktop\eclipse_tmp\src\tomer1&gt; java tomer1.Test
  Error: Could not find or load main class tomer1.Test
  </code></pre>
  
  <p>how can i fix this?</p>
  
  <p>this is my code:</p>
  
  <pre><code>package tomer1;
  
  public class Test {
  
      public static void main(String[] args) {
          System.out.print("hi");
  
      }
  
  }
  </code></pre>