Hi Ramya,
Am not sure whether i got your question right or not ,but
you creating the build using eclipse tool ?
well then make sure you had imported all the necessary jars in the build file ,ie ant script.
The imports are missing means you had missed out some classpath which needs to be set for the project in eclipse.
In eclipse,go to the tab
Project - properties-
java build path - libraries
and add the necessary libraries .
rgds,
Raj