genesis2

User manual

Documentation for building on other platforms

JAR files for MacOS, Windows and Linux are available. This section provides instructions for other platforms

A build on another platform should work, subject to checking that the right dependences for JavaFX libraries are used. The way the project is set up, Maven should automatically find them.

Configuration concerns

To run the version that does not include dependences on the command line, you need to download a version of the JavaFX SDK.

Assuming the JavaFX library is in directory named in shell variable $JAVAFX and your JAR file is in $JARF, you can invoke it as follows:

java --module-path $JAVAFX --add-modules javafx.controls,javafx.fxml,javafx.swing -jar $JARF

Note: the library path should go to the actual contents so if e.g. the path is /usr/local/lib/JavaFX/lib then include the trailing part of the path after /lib. In my examples, the libraries are not in another layer of lib directory as this is implied by the rest of the path.

There is a Bash script genesis.sh in this repository (in scripts) that can run the above. To invoke, create environment variables that the script will use (it has defaults if you don’t do this). To the the above effect (modifying the paths to suit your install):

export JAVAFX=/usr/local/lib/JavaFX-21
export JARF=$HOME/Applications/Genesis2-2.4b-Generic.jar

Note: in Unix shell scripting, you can create a shell variable wuthout using the word EXPORT but the value will not be visible to a child process, i.e., the script will not see it. The JavaFX path should contain the actual library files – if they are in a directory called lib append that to the path.

Building on different environemts

Test data

Data to test functionality is available in the repository in directory agm-demo/agm-genesis/sample-data/ (Windows users can rotate the slashes to suit).

Data file types available to open are: