[Help]Java path keep geting reset to nothing

I tired to add Graalvm to the path of dietpi then not long after that the system just reset and lose all that path that i set. Also is there any way to make the system detect the and paring the bluetool keyboard on console startup?

the guide I following to install Graalvm https://www.graalvm.org/docs/getting-started/linux-aarch64/

You can add the export command at the bottom of the .bashrc file in the user’s home directory.