Skip to content

Installation

Ignacio Vellido Exposito edited this page Jun 4, 2021 · 3 revisions

🔓 Requirements

This project has the following dependencies:

  • git
  • OpenJDK 8
  • Maven
  • Python3
  • Python3 venv
  • ANTLR 4.7.2 for Python3 (or superior). See here for more information

To install them, run the following commands:

$ sudo apt install git openjdk-8-jdk maven python3 python3-venv
$ pip install antlr4-python3-runtime

NOTE: If you have more than one version of java installed in your device, you will have to select the openjdk-8-jdk version by running sudo update-alternatives --config java.

🔧 Installation

To install the required Python dependencies, you can create a virtual environment and install them in there. You can do this by running the following commands:

# Create virtual envirnoment
$ python3 -m venv env

# Activate virtual envirnment
$ source env/bin/activate

# Install dependencies
$ pip install -r requirements.txt

This way, you will be able to run the Python script without any kind of issue whenever the virtual environment is active. If you want to exit the virtual environment, run the following command:

$ deactivate

To create the executable JAR file, run this command:

# Create executable file
$ mvn package -DskipTests=true

It will generate the following JAR file: target/GVGAI-PDDL-1.0.jar. The target/ directory also contains external dependencies. Without them, the JAR file can't be executed.

Clone this wiki locally