with Gradle

Requirements:

  • Java >= 15

Follow the steps below to create a new application:

Note
The first time you run takes longer since it downloads Jason.
Unix
curl -s -O http://jason.sourceforge.net/np/np31.zip
unzip np31.zip
./gradlew --console=plain
Windows
  1. Download http://jason.sourceforge.net/np/np31.zip

  2. Unzip

  3. Run gradlew.bat

You will be asked to enter the identification of the application and then instructions about how to run it will be shown.

Example of output:

> Task :run
Jason 3.1
     built on Wed Mar 23 11:29:48 BRT 2022
     installed at /Users/jomi/pro/jason/build

Enter the identification of the new application: bobob
Creating path /Users/jomi/tmp/y/bobob

You can run your application with:
   $ jason /Users/jomi/tmp/y/bobob/bobob.mas2j
or
   $ cd /Users/jomi/tmp/y/bobob
   $ gradle -q --console=plain

an eclipse project can be created with
   $ gradle eclipse
or 'Gradle Import Project' from Eclipse menu File/Import

If you want to run a Jason application that was not created with a build.gradle file, you can download a template from here and replace

  • <VERSION> by the required Jason release (e.g. 3.0)

  • <PROJECT-FILE> by your .mas2j file (e.g. hello.mas2j).

  • <PROJECT-RUNNER-CLASS> by jason.infra.local.RunLocalMAS

with Scripts

Requirements:

  • Java >= 15

The first step is to download Jason here and unzip it. Then configure some environment variables: JASON_HOME should be the directory where you unzip the downloaded file (it should have the directories libs and scripts inside) and PATH. For example;

export JASON_HOME=$HOME/pro/jason-3.0
export PATH=$JASON_HOME/scripts:$PATH
  1. New applications can be created with

    jason-new-project nameofapplication
  2. The Jason IDE based on jEdit can be run with

    jason-ide
  3. Jason projects (.mas2j files) can be run with

    jason ../somewhere/some-project.mas2j

Atom

For an IDE lighter than Eclipse, we recommend Atom. The following package provide syntax highlight for AgentSpeak (the Jason language): language-agentspeak.

atom2