Build Projects
Greta is composed of several Java projects, you need to open them in your favorite Java IDE and to build them. In this page we propose two different ways to build the java projects:
via NetBeans
via build script
The easiest solution for the general user can be via script, but if you are using the platform and you want to develop other modules it is suggested to use NetBeans.
Build via NetBeans
In order to build the projects, open NetBeans and select File –> Project Groups… –> New Group… –>Folder of Project –> Browse… to find and open the folder just downloaded from GitHub –> Create a Group.
Once open all the projects, select all of them and with the right button of the mouse select Build
Now you are ready to run the Modular application.
Troubleshooting
If you have the correct version of JDK but can’t build the project, you might have to specify to NetBeans wich version of JDK you want to use. To do so, go to C:/Program Files/NetBeans-12.6/netbeans/etc/netbeans.conf, and verify the version of JAVA.
JDK Default version in NetBeans.conf:
Build via script
ANT Installation and Setup (in Windows)
You can download ANT from https://ant.apache.org/ . Download the binary distribution, unzip it, and move it to a directory of your choice. After that, set these environment variables (if don’t know how to do it, you can try to see this example video: https://www.youtube.com/watch?v=83SccoBYSfA ) all in the user variables section:
ANT_HOME: the-unzipped-ANT-directory
Path: add the the-unzipped-ANT-directorybin
JAVA_HOME: your-default-JDK-directory(you might already have this set)
You are ready to use ANT! (don’t forget to close the existing command line windows, though)
Running the ANT Build Scripts
To build from a clean state, open the command prompt, go to the GRETA_DIR/ directory on your pc and run this command: ant build
Running the ANT Clean Scripts
To clean from a compiled state, open the command prompt, go to the GRETA_DIR/ directory on your pc and run this command: ant clean