title: Resolving File paths - 'File not found' error in Eclipse
body: <p>My current directory has files registers.xml and MySaxparser.java. But I still get a File not found error when i use new File("register.xml");</p>
  
  <p>My cwd is : C:\Users\nb\workspaceAndroid\MySaxParser</p>
  
  <p>Im using Java 1.7 , Eclipse platform on windows</p>
  
  <pre><code>  public static void main(String[] args) {
          File file1 = new File("register.xml");
            if(file1.exists()){
                System.out.println("File existed");
            }else{
                System.out.println("File not found!");
            }
     System.out.println("Working Directory = " +  System.getProperty("user.dir"));
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>File not found!
  Working Directory = C:\Users\nb\workspaceAndroid\MySaxParser
  </code></pre>
  
  <p>I tried the line below whcih didnt work too.   </p>
  
  <pre><code>File file1 = new File("C:\\Users\\nb\\workspaceAndroid\\MySaxParser\\register.xml");
  </code></pre>