All of the Jersey sample applications can be executed from the command line or from NetBeans IDE 6.5 using at least Maven version 2.0.9. Maven makes it easy to distribute the samples without redistributing third-party dependencies, which can be very large.
There are three samples included in the tutorial that demonstrate how to create and use resources. They are:
HelloWorld-WebApp is a simple “Hello, world” sample that responds to HTTP GET requests.
Storage-Service demonstrates a simple, in-memory, web storage service.
Bookstore demonstrates how to connect JSP pages to resources.
To run the sample applications, you must install Jersey onto either GlassFish v3 Prelude or NetBeans IDE 6.5, and you need to install and configure Maven. Here are the links to more information on these topics.
Installing Jersey onto GlassFish v3 Prelude. This task is described in Adding Jersey to GlassFish.
Installing Jersey as part of the NetBeans Web and Java EE pack, or by installing Jersey as a separate plugin to NetBeans IDE 6.5. This task is described in Installing Jersey in NetBeans.
Installing Maven to run the sample applications. This task is described in Running the Jersey Examples.