SARL is implemented in Java, so you must have a Java Runtime Environment 17 or higher installed in order to compile and execute.
There are two easy ways to get SARL up and running.
A pre-configured Eclipse distribution is available which has already all the necessary plug-ins installed.
Alternatively, you can install SARL SDK into your existing Eclipse using the Eclipse update mechanism.
Install pre-configured Eclipse with SARL SDK
- Download the distribution from above that matches your OS.
- Unzip the archive into the directory of your choice. Windows Users should choose a directory close to the root since the zip contains a deeply nested folder structure. The maximum path length on windows may not exceed 256 characters.
- Launch Eclipse and select the workspace location. A workspace location is the directory for your user data and project files.
Several command-line tools could be dowloaded with the following links.
Generator of the API documentation (sarldoc): Windows, Linux, macOS
Install SARL SDK from the Eclipse update site (not recommended)
If you have an Eclipse running :
- Choose Help -> Install New Software... from the menu bar and Add... Insert one of the update site URLs (http://updates.sarl.io/composite/releases, or http://updates.sarl.io/composite/snapshots). This site aggregates all the necessary and optional components and dependencies of SARL.
- Select the SARL Language Definition and the SARL Development Kit from the category SARL, and complete the wizard by clicking the Next button until you can click Finish.
- After a quick download and a restart of Eclipse, SARL is ready to use.
Note We recommend to use Eclipse 2023-06
Getting an old version of SARL
The old versions of SARL are available on Google Drive.
Getting the source code
The source code of SARL is available on Github.
You could get the source code by cloning the GIT repository:
git clone https://github.com/sarl/sarl.git