Set JAVA_HOME for root user in AWS Ubuntu16.04 Server

# sudo vim /etc/environment
...
...
...
JAVA_HOME=/opt/jdk  <--- your jdk path
...
...
...
:wq!
# source /etc/environment

Recommended Posts

Set JAVA_HOME for root user in AWS Ubuntu16.04 Server
Install Oracle JDK 8 via PPA in AWS Ubuntu Server 16.04
AWS CLI install in Ubuntu 20.04
[Ubuntu] Set up a Nukkit server
Run chromium in kiosk mode from Ubuntu Server
Java.home cannot be set in visual studio code.
Set up an SSH server on WSL2 Ubuntu 20.04
Set pop-up display for Java language in vim.