I was following a tutorial for setting up Eclipse to make mods, and one of the steps was downloading and installing the Forge SRC file. However, in the video, Eclipse stated that there were only warnings, no errors, and I had 21 errors. Also, the person in the video could click on the file labeled src in the left-hand window of Eclipse and get a drop-down menu, but I had no dropdown menu. I downloaded the zip folder from the link in the video, and installed it using the .cmd file provided by Forge like stated in the video.
If anyone knows what I did wrong, or knows how to fix this, please tell me. Another solution would be to post a link to a download to a pre-installed file with all of the components there already.
What to do here depends heavily on which version of Forge you're setting up. All Forge versions from 960 and later (except for 965, which was the latest version for 1.6.4 and what the video seems to have used) uses a new setup system called Gradle. From the nature of the problems you're seeing, I'll assume you're using one of these versions. (If you're modding 1.6.4, you're likely not using Gradle, and if you're modding 1.7.2 you are definitely using it.)
It might be a good idea to start over just to ensure you've not messed up anything. Re-download the src package, then extract it. When done, open up a command prompt (Windows key+R, type "cmd" then press enter). Go to where you extracted Forge. Look for a file named "gradlew". (Don't run it yet.) Once you find it, click in the address bar in Windows Explorer and copy the path.
Return to the command prompt and enter: cd "
Now, right click, select Paste. Then enter: "
You should see something like 'cd "C:\Users\Your name\Desktop\Forge 1.7.2"'. Then press enter.
The next step may take anything from a few minutes to several hours to complete, depending on your bandwidth. Enter in the command line: gradlew.bat setupDecompWorkspace eclipse
Ensure you get your spelling and casing right, otherwise it WILL NOT WORK. Feel free to copy the command and rightclick->paste it. Finally, press Enter. Forge will now download a lot of things it needs to work.
While this finishes, ensure you have the latest Eclipse version (the startup splash should display Eclipse Kepler). Chances are you have. If not, download it. Now, open Eclipse. In the Help menu, select Eclipse Marketplace. Search for "gradle" and install it. (You'll probably get some errors, these are safe to ignore.) When installation finishes, close Eclipse.
All you got to do now is wait for your command line to finish up, unless it already has. Nothing else to do meantime.
Once it has, open Eclipse again. Create a new, blank workspace (do NOT use the Eclipse folder!) In the File menu, select Import then choose Existing Projects into Workspace. Locate the Forge folder (the one with the gradlew file in it, still not the eclipse folder). You'll see Minecraft appears in the project view. You'll also notice an example mod. Create your mods in the same folder. (Not the com.examplemod folder, but the one that one is located in.)
From there on, it's happy modding! You should also delete the example mod when you no longer need it as it is buggy and broken. (Kind of odd considering it came bundled with Forge.)
When your mod is done and tested, you may want to have a jar file to distribute. Return to the black command prompt. (If you closed it, no worries - just open a new one, and do the "cd" step a little further up. However, don't run gradlew setupDecompWorkspace etc. again.) Run this command: gradlew.bat build
Wait for it to finish. You'll see your mod by going to your Forge folder, then build and libs. There should be one jar - that is your completed mod.
I hope this helps - if you have any questions, feel free to ask!
Rollback Post to RevisionRollBack
I AM NOT YOUR PERSONAL MINECRAFT MOD SUPPORT AGENT, SO PLEASE DO NOT PM ME ABOUT PROBLEMATIC MODS THAT ARE NOT MINE. If you're having trouble/crashes with a mod, you'll have better luck resolving it in this forum section than PMing me. If you already made a topic, be patient about responses. If you have troubles with anything non-Minecraft related on your PC, I might be able to help, though, but no promises. Even though I could wish to be, I'm not a wizard.