Error occurred during initialization of VM in MSBuild SonarScanner

Hello, I am facing the below issue with sonar scanner MSBuild while running an “end” command after the build command.

The steps I am following are:

  1. Start the SonarQube server.
  2. Create a key for a project and open cmd.
  3. Run sonar-scanner commands (3rd command is failing in this step).

Error message: “Error occurred during initialization of VM, Failed setting boot class path.”

I am using sonar-scanner-msbuild- and i have javac 11.0.9, java version “11.0.9” 2020-10-20 LTS installed.

I am a new user and don’t have much knowledge about sonarQube, please help me out.