Building a simple RESTful web service application using the NetBeans IDE

To create a JAX-RS application, perform the following steps:

  1. Launch the NetBeans IDE.
  2. In the main toolbar, navigate to File | New Project.
  3. On the New Project dialog screen, navigate to Maven | Web Application for building the RESTful web service. Proceed to the next screen by clicking on the Next button.
  4. In the Name and Location screen, enter Project Name, Project Location (for storing the source), Group Id, Version (for the Maven project), and Package (for the Java source files), as follows:
    • Project Name: rest-chapter3-service
    • Group Id: com.packtpub
    • Package: com.packtpub.rest.ch3.service

Refer to the following screenshot for the values used for this example:

Get RESTful Java Web Services - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.