• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse Error

 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting an error when I try to execute the main method of a class.

A diaglog pops up and says:
"Errors exist in required project. Continue launch?"

If I choose to continue (by hitting ok) the class is not executed.

So I save time, any tips?

thanks
 
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Dhar Desai:
I am getting an error when I try to execute the main method of a class.

A diaglog pops up and says:
"Errors exist in required project. Continue launch?"

If I choose to continue (by hitting ok) the class is not executed.

So I save time, any tips?

thanks



check your project classpath
 
Dhar Desai
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Actually, the fix turned out to be trivial. I switched to the java perspective from the navigation perspective. There was a red marker by the project name indicating there was a problem with some of the classes in the project. I fixed the problem and that allowed me to execute the class.

However, the class was just a test class and not dependent on any other classes in the project. But still, eclipse didn't allow me to execute it.

thanks.
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I had the same problem. I did below

- I had more than 50 jar files in build path. I see 1 of the jar was removed in the filesystem. This causes the claapath refers the invalid jar file.

- I removed the invalid jar file from classpath and the problem resolved.

If you dont know how to remove the jar file from build path, then please create a new topic.
reply
    Bookmark Topic Watch Topic
  • New Topic