This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes problem with the Eclipse editor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "problem with the Eclipse editor" Watch "problem with the Eclipse editor" New topic

problem with the Eclipse editor

Deepa Chandrashekar

Joined: Oct 16, 2012
Posts: 24
Hey guys,

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);

Thanks in advance!

Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

perhaps, just rebuild the project and see whether that helps.
Deepa Chandrashekar

Joined: Oct 16, 2012
Posts: 24
Thanks for the reply!

I tried doing that but it didn't change... my older programs run successfully but recent programs are showing errors....
Peter Johnson

Joined: May 14, 2008
Posts: 5852

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.

JBoss In Action
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: problem with the Eclipse editor
It's not a secret anymore!