These are ancient instructions, Java 8 is long EOL. Do this:
dietpi-software install 196
or select Java JRE interactively in dietpi-software menu.
EDIT: Ah you did already. Then it should be all fine, there should be Java 21 from the Adoptium repository installed. To check:
java -version