Carefully follow the installation instructions and everything will work:
https://www.b4x.com/b4a.html
The new instructions require OpenJDK 19, SDK Command Line Tools and new version of Resources.
Do a clean installation of B4A and the new SDK
or
install them on another folders.
Check if the required libraries require updates.