1.17 doesnt work with java 15 i need 16

i tried to update java to java 15 but I cant run the server. when i try to start it it just says “down” after a while. my suspicion is that its becouse it just doesnt work with java 15.
anyone know how to update the java version to 16 on mineos turnkey (the os)?
edit: 1.16.5 works btw just 1.17 doesnt

thanks! i tried it and it works!