I am trying to run the program in Eclipse but it says " the editor doesn't contain the main type" and also i am not able to run the programs on server...
Please advise me and what settings to do in Eclipse!
i have typed simple programs like
public class Polish{
public static void main (String[] args){
int x=4;
StringBuffer sb = new StringBuffer("..fedcba");
sb.delete(3, 6);
System.out.println(sb);
}
}
I suspect that either your Eclipse workspace or installation is corrupt. Try this: create a new workspace and create a simple project with a main() method in it and see if that works. If it does, there is most likely something corrupt in your old workspace - move oll of your projects to the new workspace. If you still have the same problem in the new workspace, then most likely the Eclipse installation is corrupt, download and reinstall Eclipse.