How do I change the $JAVA_HOME file path for Cent OS 7? inmoFan 3 years ago updated 3 years ago Answered I have root access, have tried to edit ~ ./bashrc to change my $JAVA_HOME path to /usr/lib/jvm/jre-11-openjdk . I was editting ~ ./bashrc but didn't know how to save the changes. Is there a way I should be doing this? Thanks.