javax.ws.rs package

jakarta-ee, java, jax-rs, rest, web-services

Solution

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.)

Problem

I am learning RESTful Web Services and all the tutorials use `javax.ws.rs.*` package. But with JDK 6 and JDK 7, my Eclipse doesn't seem to recognize `javax.ws` package. What am I missing here?

Original source