Missing Signed-By in the sources.list(5) entry for 'https://deb.debian.org/debian'

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