Answers for "linux set java home"

0

set java_home permanently ubuntu

sudo gedit /etc/profile
#add following lines

JAVA_HOME=/usr/lib/jvm/{your jdk path}
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin
export JAVA_HOME
export JRE_HOME
export PATH
#logout to update the changes
Posted by: Guest on February-22-2021
0

export java_home linux

export JAVA_HOME="path that you found"

export PATH=$JAVA_HOME/bin:$PATH
Posted by: Guest on March-29-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language