Moneybags: a cashflow management system
Moneybags development is done in VS Code using the Java Extension Pack. It targets JDK 21 (Latest LTS at the time of writing).
As development will be primarily done on Windows, the following instructions are written with Windows in mind.
Moneybags uses the Gradle build system.
To install the JDK (OpenJDK 21, specifically), the simplest way (imo) is to use Scoop.
Note: Please remove any older or different versions of Java already installed to prevent VS Code from getting confused
Install Scoop Package Manager if you don’t have it already:
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
Set up Scoop by installing Git and adding the Java bucket (buckets are just repositories):
scoop bucket install git
scoop bucket add java
Install OpenJDK 21:
scoop install openjdk21
Set the JAVA_HOME
user environment variable to the installation directory C:\Users\<your-username>\scoop\apps\openjdk21\current
One of the benefits of using Scoop is that the current
directory is symlinked, so if you update JDK 21, you won’t need to update your JAVA_HOME
variable.
Install WiX Toolset from here - required for creating native executables.
Add the WiX Toolset bins to your user Path
: C:\Program Files (x86)\WiX Toolset v3.14\bin
OPENJFX_HOME
environment variable within the project.OPENJFX_HOME
user environment variable to the directory where you’ve installed JavaFX.Java Projects
section in the sidebar rather than with the directory explorer, it allows for easy package and class creation.To build the project with Gradle, run ./gradlew build
To distribute, run ./gradlew dist
- This will create a self-contained executable in the app/bin/dist
directory.