title: Using FileReader causes a compiler error "unhandled exception type FileNotFoundException"
body: <p>Ive read a few threads here that relate the same problem, but the solutions arent working. :/</p>
  
  <p>I use Eclipse, here is my program. </p>
  
  <pre><code>package mypackage;
  import java.io.*;
  
  
  public class myclass {
  
  
  public static void main(String[] args) {
      //String myfile = "/home/jason/workspace/myproject/src/mypackage/myscript.abc";
      String myfile = "src/mypackage/myscript.abc";
      File file1 = new File(myfile);
      if(file1.exists()) {
          log(myfile + " exists. length : " + myfile.length());
      }
      else{
          log(myfile + " does not exist");
          //System.exit(1);
      }
  
      //FileReader fr = new FileReader("myscript.abc");//I uncomment this and die inside
  
  
      System.out.println("\nAbsPath : " + new File(".").getAbsolutePath());
      System.out.println("\nuser.dir : " + System.getProperty("user.dir"));
  
  
  }
  
  public static void log(String s){
      System.out.println(s);
  }
  </code></pre>
  
  <p>}</p>
  
  <p>The error I get, no matter what I try, or where I put myscript.abc (its peppered throughout the projects directory now) is this : </p>
  
  <blockquote>
    <p>Unhandled exception type
    FileNotFoundException myclass.java    /myproject/src/mypackage</p>
  </blockquote>
  
  <p>Wits end, pulling hairs.</p>