How to install / recompile the example apps from the command line

These versions (or later) should be downloaded and installed:

The above link is to OpenJDK 12, which is free. Oracle JDK 11+ requires a paid license.

If the Swirlds browser freezes when it is first launched, it is possible that the operating system needs a utility installed to collect entropy, such as the utilities for Debian or Raspbian.

These examples will uses slashes in paths, but on Windows they will be backslashes.

Download and unzip the SDK. This gives a directory with a number of files and subdirectories, including these:

    sdk/data/apps/ 
    sdk/swirlds.jar 
    sdk/config.txt 

The last one, config.txt, is used to make the Swirlds browser automatically run a particular app. It can even make multiple instances of it run and communicate with each other, as if they were on multiple machines. The comments in the file explain how to change it.

The demo apps are now ready to run.

The apps come with source code, and can be recompiled from the command line, by executing mvn install in the directory of a demo, then running swirlds.jar. The following walks through an example of doing this.

Back