title: Exception in thread "main" java.lang.NoSuchMethodError: main - how can I fix that?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/5407250/causes-of-java-lang-nosuchmethoderror-main-exception-in-thread-main">Causes of &#39;java.lang.NoSuchMethodError: main Exception in thread &ldquo;main&rdquo;&#39;</a>  </p>
  </blockquote>
  
  
  
  <p>I am using Eclipse.  I deleted everything and left the main function - nothing is working.  Can somebody pls help?</p>
  
  <pre><code>package good;
  
  import java.io.*;
  
  public class FiFo {     
      public static void main()
      {
          System.out.println("here");
      }
  }    
  
  class FileReader {
      public FileReader(String fileName)
      {
          try {
              FileInputStream fstream = new FileInputStream(fileName);
              BufferedReader br = new BufferedReader(new InputStreamReader(fstream));
          }
          catch (FileNotFoundException e) {
              e.printStackTrace();
          }
          catch (IOException e) {
              e.printStackTrace();
          }
      }
  }
  </code></pre>