JDK not persist every time i shuts down qube

I install temurin-17-jdk with it’s online doc, and it’s running well at the session.
BUT, every time I quit, it’s all gone.
when I use “java -version” to find out, it always prompts message that “bash : no command”
So, I have to reinstall it from all beginning.
because you can’t just install temurin-jdk with your default dnf repository,
you must do all the chores modifying it.
How can I fix it?

Install in the template.
In docs you can find out what AppVM are and why do they not save your java installation.