I'm not sure what I did wrong then. Let my write down the steps I went through.
I downloaded the 1.7.10 latest src from here: http://files.minecraftforge.net/
After that, I extracted the downloaded package, went into the extracted folder, and opened a command prompt there.
Then, I wrote in "gradlew setupDecompWorkspace --refresh-dependencies", and after it completed, I typed in "gradlew eclipse".
After that, I opened eclipse, pointed the workspace to the eclipse folder in the extracted forge folder, and then I got that error.
Am I doing something wrong?