Skip to content

Build the java projects

sagatake edited this page Mar 14, 2025 · 12 revisions

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 NetBeans to build the java projects.

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

drawing

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

(optional) Build via script

Not supported anymore, but may still work...

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:

  1. ANT_HOME: <the-unzipped-ANT-directory>
  2. Path: add the <the-unzipped-ANT-directory\bin>
  3. 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

Getting started with Greta

Basics

Advanced

For developpers

Functionalities

Core functionality

Auxiliary functionality

Preview functionality (only in dev branch)

Nothing to show :)

Previous functionality (it might work, but not supported anymore)

Tips

Clone this wiki locally