Many thanks
@aminoacid for detailed explanation.
I have some questions here...
1) Is this supposed to be working on Desktop PC (non-ARM) with linux too ?
2) How much is different this, than create the full installer with Create Standalone Package ?
Personally I never managed it, in past with Java8 I was able to just double-click jar files on linux
to run any B4J app, but this is not possible with Java11.
3) And because do not create 2 different bash scripts to fully automate it ?
- one to install Java and JavaFx
- one to launch applications by passing the jar as argument
In past I've done a similar thing to fully automate the installation of the OpenArena game on Raspberry,
please take a look here:
https://github.com/maxmeli123/Raspberry-Mods/tree/master/OpenArena
This only require just some seconds to have the working game, the script is simple and fully automated on terminal, it even check if the GPU OpenGL
driver is enabled in the Raspberry config and even create the desktop launcher to launch it. I posted it, may the code can help.
This is an old code I used on Raspberry PI 3, it even works on Raspberry Zero W.
I do not know if it works now, may repositories still be changed and the script fails.
Thanks
Max