title: Simple Question: Cannot Find Symbol - Class in Java from CMD
body: <p>Tried looking into other questions or in tutorials, it seems to be a common problem for beguiners, but I am unable to understand what to do, and would like someone help me in a step by step how can I make my code to work.</p>
  
  <p>From IntelliJ when pressing the run button it works fine, but when doing it through the windows terminal it throws:</p>
  
  <pre><code>Main.java:5: error: cannot find symbol
          Run.main();
          ^
    symbol:   variable Run
    location: class Main
  1 error
  error: compilation failed
  </code></pre>
  
  <p>Here is the code:</p>
  
  <p>Main.java</p>
  
  <pre><code>package com.test;
  
  public class Main {
      public static void main(String[] args) {
          Run.main();
      }
  }  
  </code></pre>
  
  <p>Run.java</p>
  
  <pre><code>package com.test;
  
  public class Run {
      public static void main() {
          System.out.println("[-] Bad Usage");
     }
  }
  </code></pre>
  
  <p>The path for the project is: <code>C:\Users\isaac\IdeaProjects\ex1\src\com\test</code></p>
  
  <p>What I already tried:
  <code>javac Main.java Run.java</code> (from test, com, src or ex1 folder) - Maybe I did it in the wrong way.</p>
  
  <p>I think that was the solutions I found, but every-time I do the javac it throws the same error...</p>