type=page
status=published
title=Building and Running the CDI Samples
next=cdi-basicexamples002.html
prev=cdi-basicexamples.html
~~~~~~
= Building and Running the CDI Samples


[[A1250045]]

[[building-and-running-the-cdi-samples]]
Building and Running the CDI Samples
------------------------------------

The examples are in the `_tut-install_/examples/cdi/` directory.

To build and run the examples, you will do the following:

1.  Use NetBeans IDE or the Maven tool to compile and package the
example.
2.  Use NetBeans IDE or the Maven tool to deploy the example.
3.  Run the example in a web browser.

See link:usingexamples.html#GFIUD[Chapter 2, "Using the Tutorial
Examples"], for basic information on installing, building, and running
the examples.

The following topics are addressed here:

* link:cdi-basicexamples002.html#GJBJU[The simplegreeting CDI Example]
* link:cdi-basicexamples003.html#GJCXV[The guessnumber-cdi CDI Example]
