How to export Processing sketch with embedded Java that can be launched via double click on Raspberry Pi OS 32 bit?

I try to send for my custommer the game that I created using processing 3.5.4. But processing doesn’t export the embedded java with the game for the linux distributions (only for windows). I can manual add the java from the processing directory but it is not enough. The game needs to have a preinstalled java. How can I change the launchable script to use java from the directory with the game?

You could then look at bundling into an AppImage -