Exported program runs very poorly on Raspberry 4, but the program uses no system resources

The illegal access error message (jdk11+) can be solved by using the jogl-2.4.0-rc.jars as processing-4.0 does. However none of this stuff is suitable for novice programmer. If you can hack python then you can install py5 on RaspberryPI4 as I have done (but that is still at development stage). I am biased as the developer of PiCrate but that requires a JRuby installation, which is easiest done on the ManjaroArm distro.