make sure you have imported the external .jar file you are using into your eclipse project,

Project > Properties > Build Path > Libraries > add Jar