The packager will include all of the needed java stuff inside your package. That is why that even the smallest of apps will result in a 40MB+ package.
I don't know if there's the possibility to chose to NOT include the Java stuff, and have the end user be prompted for it...
This is the counterside of this method.
But I think that it can't be avoided because Java 11 and later does not need installation, so they must be supplied with our packages.
At the least the ones that we use with B4X.
To install the original from Oracle would require the user to create an account with Oracle, so not a so good options for most (my opinion).
Nowadays 40MB are not a big deal, but I agree that it would be nice if it could be avoided.