Follow the installation instructions and everything will work:
https://www.b4x.com/b4a.html
I did as the page said and I still get that error. I am trying to compile an older program. I also, removed and re-installed the 3 items in \java and \android and still no luck. Will try at home tonight and do a simple Hello World tomorrow. Setting the paths worked fine.
B4A Version: 11.20
Parsing code. (0.00s)
Java Version: 8
Building folders structure. (0.02s)
Compiling code. (0.02s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Compiling resources (0.68s)
Linking resources (0.97s)
Compiling debugger engine code. Error
error: Source option 6 is no longer supported. Use 7 or later.
javac 17.0.1