Gaston7eze
01-27-2012, 10:57 PM
I got another question...
Why this doesnt compile?
I use Eclipse:
Code:
import java.util.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import acm.graphics.*;
import acm.graphics.*;
import acm.program.*;
import acm.util.*;
public class Hello extends GraphicsProgram{
public void run(){
addMouseListeners();
addKeyListeners();
}
public void keyPressed( KeyEvent e){
removeAll();
}
public void mouseDragged(MouseEvent e){
GLine gaston= new GLine(1,1,getX(),getY());
add(gaston , e.getX(),e.getY());
gaston.setColor(Color.red);
}
}
I get this error::
"Failed to load Main-Class manifest attribute from: "
What should i do?
Why this doesnt compile?
I use Eclipse:
Code:
import java.util.*;
import java.awt.*;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import acm.graphics.*;
import acm.graphics.*;
import acm.program.*;
import acm.util.*;
public class Hello extends GraphicsProgram{
public void run(){
addMouseListeners();
addKeyListeners();
}
public void keyPressed( KeyEvent e){
removeAll();
}
public void mouseDragged(MouseEvent e){
GLine gaston= new GLine(1,1,getX(),getY());
add(gaston , e.getX(),e.getY());
gaston.setColor(Color.red);
}
}
I get this error::
"Failed to load Main-Class manifest attribute from: "
What should i do?