I suppose the question is: when you installed your JDK, did
you edit any (or did your distro, depending on how you installed)
any files that are required for the set-up of environment variables?
The "clean" way of setting them would be to create a file
with content like
(obviously modified to match your actual paths).