I am learning restful webservices and all the tutorials use javax.ws.rs.* package. But with JDK 6 anf JDK 7, my eclipse doesn't seem to recognize javax.ws package. What am I missing here?
javax.ws.rs is not a JDK package; it is a server-side API that forms part of the Java EE specification. You would need to include a Java EE runtime on your classpath or source an implementation from a 3rd party if you're going the self-assembly route (e.g. using Tomcat.)
You're may be missing Jersey installation, or something in your environment configuration. Try also installing Eclipse WPT. You can follow this tutorial, it covers prerequisites and basic installation procedures as well.