set java_home permanently ubuntu
#Update repo
sudo apt update
# Install java 8 from ubuntu repo
sudo apt install openjdk-8-jdk -y
#Set JAVA_HOME Path
ls /usr/lib/jvm/java-8-openjdk-amd64/
export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64
echo $JAVA_HOME
#Add JAVA bin directory to the PATH variable
export PATH=$PATH:$JAVA_HOME/bin
echo $PATH
java -versionsudo 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
Also in C++:
- Starting doesn't work: sudo systemctl start coturn
- makefile ifeq or
- This system is not registered with an entitlement server. You can use subscription-manager to register.
- bash change to script directory
- bash how to transpose a column
- install postcss
- git undo comflicted merge
- material ui alert module
- ubuntu stacer review
- rust install windows
- Redis::CommandError: MISCONF Redis is configured to save RDB snapshot
- case shell
- linux show mail server
- linux move folder and subfolders to parent
- apt install xfce4-xkb-plugin
- shell script to count number of lines in a file
- find my ip mac terminal
- git cherry pick resolve conflict
- cp -r copy linux directory or file
- @material-ui/icons
- rename all files in a folder with progressive numbers linux
- how to delete a dir in linux
- how to execute docker command in shell script
- extract tar.xz linux