Having set the JAVA_HOME in om-premise agent to point to jdk 17 but still getting error

This is duplicate, cause I have already asked Having set the JAVA_HOME in om-premise agent to point to jdk 17 but still getting error but @ganncamp splited my reply to this thread from his post :
Understanding `java.lang.UnsupportedClassVersionError`