When i try the java -version i am still getting the java17 instead of my java 1.8
What else i have to do in order to use my 1.8 jdk as my current java ?
Looking at /bin/java on my machine I can see it’s a symlink to /usr/lib/jvm/default-runtime/bin/java which is itself a symlink to /usr/lib/jvm/java-8-openjdk/jre/bin/java.
So at a guess you may need to make some changes to the symlinks.