Make sure that Maven is installed and configured, as described in Running the Jersey Examples.
Open a terminal prompt and navigate to jersey.home/samples/HelloWorld-WebApp.
Enter mvn glassfish:run and press Enter.
This will build, package, deploy, and run the web application. It will also start GlassFish if it is not running.
In a web browser navigate to:
http://localhost:8080/helloworld-webapp/helloworld |
You will see the following output in your web browser:
Hello World |