By following these steps, you should now have Java 17 installed on your system. If you encounter any issues during the installation process, refer to the official documentation or seek help from online communities.
sudo apt install openjdk-17-jdk
Then reload: source ~/.bashrc