ubuntu change default java path
#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 update-alternatives --config java
Also in C++:
- mongo shell load
- ubuntu adduser
- install mongodb ubuntu 20.04
- linux dig command all dns records
- ffmpeg add two videos together
- git check upstream url
- list all commits for repo api github
- set global git ignore
- command to wrap html
- deploy to firebase using trivis
- install opencv apt
- lookup function in terraform
- install vmware workstation linux mint
- how to install anything on kali linux
- linux install qt5widgets
- how to check kernel version in linux
- install ng bootstrap
- ./RsaCtfTool.py: command not found kali linux
- remove folder ubuntu
- VS github merge
- installing hinterland for jupyter without anaconda
- Why double tapping icon doesnt minimize in ubuntu
- unity hub installation aborted
- ffmpeg mp4 to webm