Exception in thread "main" java.lang.UnsupportedOperationException: The Security Manager is deprecat

I am using sonarqube 10.7 and Java 21 still getting this, Could you help me with this as per this post SonarCloud supports Java 21 code scanning! - #13 by Colin Sonar 10.5 onwards supports Java 21