## Before You Begin

To use the examples, you'll need ``git``, ``java``, and ``maven`` (v3) installed.
Then check them out from [github.com/brooklyncentral/brooklyn-examples](https://github.com/brooklyncentral/brooklyn-examples),
build, and run:

{% highlight bash %}
% git clone https://github.com/brooklyncentral/brooklyn-examples.git
% cd brooklyn-examples
% mvn clean install
% export EXAMPLES_DIR=`pwd`
{% endhighlight %}

If you hit any issues with the above, see the tips
for [Maven]({{ site.url }}/dev/build/index.html) and
[IDEs]({{ site.url }}/dev/build/ide.html).


## Before You Begin

To use the examples, you'll need ``curl``, ``java``, and ``maven`` (v3) installed.

First, grab a copy of the Brooklyn distribution:

{% highlight bash %}
% # download and unpack
% curl -L http://developers.cloudsoftcorp.com/maven/releases/io/brooklyn/brooklyn-dist/0.4.0-M2/brooklyn-dist-0.4.0-M2-dist.tar.gz | tar xzv
% # set up an environment variable to point to it for convenience
% BROOKLYN_HOME=$(pwd)/brooklyn
{% endhighlight %}

Then, grab a copy of the brooklyn-examples source code and build with Maven:
{% highlight bash %}
% # download and unpack
% curl -L https://github.com/brooklyncentral/brooklyn-examples/tarball/master | tar xzv
% # set up an environment variable to point to it for convenience
% BROOKLYN_EXAMPLES=$(pwd)/brooklyncentral-brooklyn-examples-0.4.0-M2
% # build with Maven
% cd $BROOKLYN_EXAMPLES
% mvn clean install
{% endhighlight %}

For more information about where to download brooklyn please
see the [download page]({{site.url}}/start/download.html).

If you wish to learn more about the Brooklyn CLI used for launching an app,
please visit [this section of the user guide]({{site.url}}/use/guide/management/index.html#cli).

Update "before you begin" section for examples
Update "before you begin" section for examples

Now using curl to grab the brooklyn distro and examples
