Download the latest scratch4j jar files (https://scratch4j.openpatch.org/installation) for your operating system and put them into the +libs folder.
This repo and setup works in VSCode and in BlueJ. For Intellij or Eclipse you need to configure the path to the libraries yourself.