Why P2D not working inside Eclipse when i using the processing.core?

Did you add them to the build path by right clicking on each. After this is done icons look like this:
bldPath