" 'String' does not name a type" in header file

Did you
#include <WProgram.h>