# Setting up a Development Environment

Before you can start creating a new rule for Composable Agentic Platform, you need a suitable development environment. The following example illustrates how to set up a rule writing environment using Eclipse. We are making the assumption that you are familiar with Eclipse. If you are using an alternative development environment, then the instructions should still be useful for setting up your own particular project.

Within Eclipse, select `File->New->Project..`

Select the Java Project as shown:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-a25cc4e2fc6aebaf9b959b4e66b816abe385e29f%2Fimage.png?alt=media" alt=""><figcaption><p>Java project</p></figcaption></figure>

Click on **Next >.**

Name your project. For this example, we have used MyTomorrowRule:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-765b3d7f49637d0af8621f104718d21486e0d183%2Fimage.png?alt=media" alt=""><figcaption><p>Project name</p></figcaption></figure>

Click on **Finish**. If you are not already in the Java Perspective, you will be asked if you wish to switch to it:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-b115970951af1efa4f56003c01c3e6a31400c2bf%2Fimage.png?alt=media" alt=""><figcaption><p>Opening associated perspective</p></figcaption></figure>

Click on **Yes**.

Your project is now visible and ready to configure:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-9cdf419cfa983b9fb1412d44b63332f014642026%2Fimage.png?alt=media" alt=""><figcaption><p>Package exploere</p></figcaption></figure>

We are now going to locate and copy the files we need for rules writing into a folder under the project. Start by signing in to the Composable Agentic Platform console as either a super user or an administrator, then click on the Base Rules extension.

You will have the option to download the extension:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-5c3efb6a9530446f57445153d231a590a68e62bf%2Fimage.png?alt=media" alt=""><figcaption><p>Extension file</p></figcaption></figure>

Save the downloaded extension to a convenient folder and unzip it. You will see the following file structure:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-dbf8551baf9106cc8ff3715d1faced21637e693a%2Fimage.png?alt=media" alt=""><figcaption><p>file structure</p></figcaption></figure>

Right click the **lib** folder and select **Copy**.

Return to the Eclipse project, right click it and select **Paste**:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-cd201e909fd81130658a1d72eb9d2c6dc57cd972%2Fimage.png?alt=media" alt=""><figcaption><p>Paste</p></figcaption></figure>

All of the libraries required for basic rule writing are now within the project:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-c133cb9fee1ddda0c4064a6fe6c71be008d05370%2Fimage.png?alt=media" alt=""><figcaption><p>Project files</p></figcaption></figure>

Select the entire list of libraries, then right click and select **Add to Build Path**:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-5c3c3ab64ca7a499413dfe3b054db8e7ebf172ec%2Fimage.png?alt=media" alt=""><figcaption><p>Build Path</p></figcaption></figure>

Next, create an appropriate package for your rule:

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-0683d9a4bf8fbd2111c7e14289113b6382293b62%2Fimage.png?alt=media" alt=""><figcaption><p>Package</p></figcaption></figure>

Name the package something that is unique, and preferably matches your organization’s naming conventions. In this case we have used `com.tomorrowx.rules.sample:`

<figure><img src="https://2423451286-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F42mDa58RoaDxb6t8mbaI%2Fuploads%2Fgit-blob-f137c5c56bc1725eef1c4dc732546576c7e3c70c%2Fimage.png?alt=media" alt=""><figcaption><p>Java Package</p></figcaption></figure>

Your project is now ready for you to begin coding.
