I have installed that and i still get the same error when i run the server.
Is it maybe because i have run a 1.17.1 vanilla minecraft server which required me to install a newer java, if so how do i uninstall a newer java version
yes that was the problem i uninstalled the new java that i forgot i had installed and it works now, thanks for the help.