Book Image

RESTful Java Web Services, Second Edition

Book Image

RESTful Java Web Services, Second Edition

Overview of this book

Table of Contents (17 chapters)
RESTful Java Web Services Second Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Tools for building a JAX-RS application


The JAX-RS examples discussed in this book are built using the following software and tools:

  • Java SE Development Kit 8 (JDK 8) or newer: You can download the latest JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html. After downloading the appropriate release of JDK, you can navigate to the Installation Instructions section on the download page for detailed instructions of installing JDK in your computer.

  • NetBeans IDE 8.0.2 (with Java EE bundle) or newer: NetBeans IDE helps you to quickly develop JAX-RS web applications. You can download the latest NetBeans IDE from https://netbeans.org/downloads. In the download page, choose either the Java EE or All download bundles because many of the examples discussed in this book are based on Java EE features.

    Detailed instructions for setting up NetBeans IDE are available at https://netbeans.org/community/releases/80/install.html.

  • GlassFish server 4.1 or newer: GlassFish is an open source application server project for the Java EE platform. The NetBeans Java EE download bundle comes with an integrated GlassFish server, which is good enough for you to run all the examples discussed in this book.

    Alternatively, you can download the latest release of the GlassFish server from https://glassfish.java.net/download.html and wire it with NetBeans. The README.txt file in the downloaded zip file contains instructions for installing the GlassFish server.

  • Apache Maven 3.2.3 or newer: Apache Maven is a build tool used in Java applications to compile source files, execute unit tests, and generate deployable artifacts. The NetBeans IDE standard installation comes with an integrated Maven installation by default.

    Alternatively, you can configure NetBeans to use an external Maven installation for building the source. To download Maven, visit https://maven.apache.org and navigate to the Download section. You will find the installation instructions under the Installation Instructions section on the download page itself. To point the NetBeans IDE to use an external maven installation, choose the Tools | Options menu item and in the Java tab, choose the Maven tab. In the Maven page, make sure that External Maven Home points to your Maven install folder.

  • Oracle Database Express Edition 11g release 2 or newer: Oracle Database Express Edition is a lightweight RDBMS, based on the Oracle Database. We use this database to build the examples discussed in this book. To directly download Oracle Database Express Edition 11g Release 2, go to http://www.oracle.com/technetwork/database/database-technologies/express-edition/downloads/index.html. Alternatively, you can visit the Oracle Technology Network site: http://www.oracle.com/technetwork/index.html, and then navigate to the menu options Downloads | Database | Oracle Database 11g Express Edition to reach the download page.

    Tip

    If you want, you can use any lightweight database, such as Apache Derby or db4o, instead of the Oracle database to try out the examples that we discussed in this book. However, in such a case, all the examples that you would download from the Packt site need to be reconfigured to fit into the database that you choose.

  • Oracle Database JDBC Driver (ojdbc7.jar or newer): The JDBC driver is a software library that lets Java applications interact with a database. You can download the latest JDBC driver from http://www.oracle.com/technetwork/database/features/jdbc/jdbc-drivers-12c-download-1958347.html.

    Tip

    To learn how to use NetBeans IDE for building JAX-RS web applications, refer to the Building a simple RESTful web service application using NetBeans IDE, section in Chapter 3, Introducing the JAX-RS API.