For anyone curious, in linux (or if you are using a Raspberry pi) the command once you cd out of everything so basically enter:
cd (This will back you out of any file you are in)
sudo apt install openjdk-17-jdk-headless
Thank you for the help with this. It worked for me, but I just wanted to post it as the commands to make it simpler. I just so happen to have had the commands already up from the original install.