Installation

Requirements

You need to have JDK 8 installed on your working environment, and except if you are an emacs master, an Integrated Development Environment would be needed.

If you just want to try Choco wihtout installing anything, you can have a look at the Choco online IDE.

Download

The JAR anyone can start with is named choco-solver-X.y.z-with-dependencies.jar where X.y.z denotes the version you want to use, here, 4.0.0. It contains the constraint programming API and any needed dependencies.

Choco is available on the official website and on Maven Central Repository.

Installation

Since Choco is a Java library, it does not need to installed strictly speaking. You only have to add it to the classpath of your project.

See instructions for IntelliJ IDEA or Eclipse.

As a Maven dependency

Choco is available on the official website and, thus, you can edit your pom.xml with :

<dependency>
    <groupId>org.choco-solver</groupId>
    <artifactId>choco-solver</artifactId>
    <version>X.y.z</version>
</dependency>

where X.y.z denotes the version you want to use, here, 4.0.0.

Building from sources

The source of the released versions are directly available on GitHub. You will then need Git and Maven 3+ on your working environment.

Check everything is alright

To make sure you correctly configured your project (with Java 8 and Choco), create a new class and copy/paste the following code:

public static void main(String[] args) {
    Model model = new Model("A first model");
    System.out.println(model.getName());
}

and execute it. The console should output :

A first model