How to set JAVA_HOME for Java in Linux?


Assuming you have installed Java in \usr\local\java\jdk directory −

if you use bash as your shell, then you would add the following line to the end of your '.bashrc: export JAVA_HOME=\usr\local\java\jdk'

Ayyan
Ayyan

e

Updated on: 30-Jul-2019

172 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements