title: "javac: file not found:" when compiling file on Mac
body: <p>I am trying to learn Java on MacBook Pro, but am not even sure how to compile or run a program and keep getting the following in Terminal:</p>
  
  <pre><code>javac: file not found: Example.java
  Usage: javac &lt;options&gt; &lt;source files&gt;
  use -help for a list of possible options 
  </code></pre>
  
  <p>when I enter my first code for Example.java saved in Text Edit.  The code I entered into Text Edit is </p>
  
  <pre><code>/* 
  This is a simple Java program. 
  Call this file Example.java. 
  */ 
  class Example { 
  // A Java program begins with a  call to main (). 
  public static void main (String args[]) { 
  System.out.println ("Java drives the web."); 
  } 
  }  
  javac Example.java  
  java Example 
  </code></pre>
  
  <p>I have found info saying to set up a class path, but am not sure how to do this. Please keep everything as simple as possible. </p>