minil minil - 1 year ago 75
Java Question

Issues in RESTFul Webservice annotation

I am trying to write a RESTFul Webservice using Jersey.

package sample.hello.resources;

public class HelloResource {
public String sayHello() {
return "Hello Jersey";

My Eclipse give error for all the annotations -
@Path, (Path cannot be resolved to a type)

Do I need to include any other libraries or configure the projects in Eclipse?

Answer Source

It seems that Path annotation exists in jersey-core library. I think you should include that library in your project

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download