title: Having trouble getting Java to compile: cannot find file
body: <p>I'm very new to programming so let me just explains where I'm at:</p>
  
  <ul>
  <li>I have downloaded the most recent JDK</li>
  <li>I have changed the path variable in the environmental variables tab, javac does run by itself in the command prompt</li>
  <li>I have downloaded notepad++ </li>
  </ul>
  
  <p>So I created a very simple program, pretty much just a simple "hello world" deal...</p>
  
  <pre><code>public class pleaseWork {
  public static void main (String[] args) {
      System.out.println("Please work");
        }
  }
  </code></pre>
  
  <p>And saved it into a folder I have on my C drive but not anywhere in the java folder. I have it saved as pleaseWork.java.</p>
  
  <p>So I go to the command line and if I just type javac it runs correctly, but if I type in javac pleaseWork.java I get an error - </p>
  
  <p>javac: file not found: pleaseWork.java</p>
  
  <p>So basically I'm asking if I need to save my notepad++ .java files in a certain place for them to compile in the command prompt or is it something else?</p>