Did you move the anything in the Eclipse project folder after creating it?
I used to teach modding to kids and this was the most common error. If you start moving things around without right-click -> Refactor -> Move then Eclipse will become confused and could cause this error.
Another error I'd often run into is if the kid was using a parent's machine and they did not have administrative permissions OR if the internet connection was particularly slow. This caused certain files to be lost when downloaded during those cmd line commands.
Here's how I set my project up assuming you're also on windows:
- download forge src (looks like you're using 1.7.2)
- extract the contents into an empty folder
- point a cmd prompt to this location
- run "gradlew setupDecompWorkspace" (will take a while, should exit with "BUILD SUCCESS")
- run "gradlew eclipse" (will take a much shorter, should exit with "BUILD SUCCESS")
- open eclipse and switch your workspace to the "eclipse/" directory in the same folder you extracted forge into. (e.g. C:\Users\ME\Desktop\FORGE_FOLDER\eclipse)
If follow these slowly and carefully there should not be any issues. If there is then that means you may not have admin privileges or may be on a restrictive internet connection.
Edit: the package declaration issue on line one is because in your project explorer it says src/main/java/com...etc when it should be src/main/java and then that contains the package starting with "com"
To do this, right-click src/main/java/com... -> Build Path -> "Remove from build path".
After this you must drop down src, drop down main, drop down java. right-click java -> Build Path -> "Use as source folder"
Edit: easy way to access cmd in right folder is to open the folder where you extracted Forge and click in the address bar at the top of file explorer and delete what's there, type "cmd" hit enter.