Reputation: 11
I am using Eclipse IDE Galileo, on windows 8.1
When I want to create a new project, I go to file> new> java project.
I name my project then click on finish.
I then open the src file under my project and right click it. new> class. And I name my class But before i even write any program, I have these errors. So can anybody please help me? Thanks in advance.
Here's the errors:
NOTE: My friend have the same problem, but she is using windows xp.
Upvotes: 1
Views: 3640
Reputation: 2222
Dear @rebecca richa This problem will occur if your project have not JDK libraries. To add JDK libraries follow the following steps
right click on project --> Properties --> java build path --> select Libraries tab --> now click on Add Library --> select JRE System Library --> select Workspace Default JRE
your problem will be solved. other wise click on alternate JRE and select the path of jdk in your system where you have installed. now your problem will definitely solved.
for further help follow the image below
Upvotes: 2
Reputation: 1273
Seems like eclipse couldn't find Java Classes for your project.
Do This...
Right Click your project
Hover on Build Path
Select Configure Build Path...
Select Libraries Tab in the newly opened window
Click Add Library
Select JRE System Library from the newly opened popup
Close the Window using OK
This should remove the errors
Upvotes: 1