• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

problem with the Eclipse editor

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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);
System.out.println(sb);
}
}

Thanks in advance!

Regards,
Deepa
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
perhaps, just rebuild the project and see whether that helps.
 
Deepa Chandrashekar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply!

I tried doing that but it didn't change... my older programs run successfully but recent programs are showing errors....
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Did you ever grow anything in the garden of your mind? - Fred Rogers. Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic