It did kinda work, after like 20 minutes of installing and uninstalling things i got openjdk 17.0.10 installed, and the server starts now, but it doesn't work with the mod that i want (the silence), not sure if it's the forge's fault, or if the mod is just broken, because it doesn't also work when i launch the game with this mod in mods folder. Here are logs if they can help.
https://paste.ee/p/T2CRW - debug log
https://paste.ee/p/ICSvS#s=0&l=39 - latest log