This is the wrong way, just a workaround if you just want to look at the source code and not worry about compiling and creating it.
You just need to delete the source folder in the java build path, this will help you get rid of those red errors that clutter up your source.
Right-click on Project-> Properties-> Java Build Path-> in Source, select the source folder and click "Delete."
Restart your eclipse.
source share