Not able To Install Minecraft SpongeForge On Windows 11 PC!

Hello everyone. I am having trouble installing Minecraft SpongeForge 1.12.2 on my Windows 11 PC. Is there anyone who can help me with the proper installation steps? Thank you in advance.

P.S. The issue has been resolved with the help of this guide. I updated Minecraft Java Edition and tried to install the latest Minecraft Forge version again.

Thats the official documentation.

Please make sure to run Java 8 (not higher) if your running 1.12.2

If you have any questions im more then happy to help