Works fine here:
B4J Version: 9.80 BETA #2
Parsing code. (0.00s)
Java Version: 18
Building folders structure. (0.01s)
Compiling code. (0.00s)
Compiling layouts code. (0.00s)
Organizing libraries. (0.00s)
Compiling generated Java code. (0.53s)
Building jar file. (0.02s)
Jar file created: C:\Users\H\Downloads\projects\t\Objects\t.jar
Running application. (0.00s)
Completed successfully.
You can also explicitly set the version with:
#JavaCompilerPath: 18, C:\java\jdk-18\bin\javac.exe