Apache Streams recommends usage of a JDK version >= 17.0
If you are using SDKMAN to manage your tools, you can use the project standard JDK by running
sdk env