Can't find javax.ws.rs package in jdk

narek.gevorgyan picture narek.gevorgyan · Jun 3, 2012 · Viewed 68.5k times · Source

I'm trying to get into JAX-RS. My project jdk is set to 1.7.03. Does there have to be definitions of annotations for JAX-RS(javax.ws.rs)? If not, where I can find them?

Answer

Tomasz Nurkiewicz picture Tomasz Nurkiewicz · Jun 3, 2012

These classes (JSR 311: JAX-RS: The JavaTM API for RESTful Web Services) are not part of the JDK. You need to include appropriate JAR file to your CLASSPATH. You can find the API e.g. in maven repository.

Also check out , (reference implementation), from JBoss, and few other JAX-RS implementations.