title: Eclipse is executing wrong main
body: <p>When I launch my program Eclipse just tries to launch a different program and this one does not even start.</p>
  
  <p>Here's the code</p>
  
  <pre><code>public class multiDisplay {  
  private int displayCount;
  private String displayMessage;
  
  public void  setDisplayMessage(String in)
  
  { displayMessage=in;
  
  }
  
  public  void setDisplayCount(int number)
  {
   displayCount=number;
  }
  
  public void display()
  { 
      for(int i=0; i&lt;displayCount;i++)
      {   
          System.out.println(displayMessage);
      }
  }
  
  public int getDisplayCount()
  {   
      return displayCount;
  }
  
  public void display(String msg, int count)
  
  {for(int i=0;i&lt;count;i++)
  {
      System.out.print(msg);
      }
  }
  public String getDisplayMessage()
  {
  return displayMessage;
  }
  }
  
  class multiDisplayMain {
  
  public static void main(String[] args)
  {
   multiDisplay md=new multiDisplay();
  
  md.setDisplayMessage("Hello World!");
  
  md.setDisplayCount(3);
  md.display();                           
  
  md.display("Goodbye cruel world!", 2);  
  
  System.out.println("Current Message: "+ md.getDisplayMessage());
  }
  }
  </code></pre>