Anypoint studio change jdk. In the studio run configuration select the JRE as JDK 17.