Your code refers to classes not part of J2SE...I'd recommend posting an SSCCE (with the imports, links to libraries used, etc...). Just in case you are unsure of how to use the libraries you use, I'd...