It is very easy to set the path on Linux. Do the following:
Step 1 Open a terminal and enter sudo gedit .bashrc
Step-2 He will ask you for your password. After entering the password, it will open the bash file. Then go to the end and enter below
step 3
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/" export PATH=$PATH:$JAVA_HOME/bin
Step 4 Then save the file and exit the file
Above for one user. For all users you must follow these steps
Step 1 gedit /etc/profile
Step 2 export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"
Step 3 export PATH=$PATH:$JAVA_HOME/bin
Hope this helps. Thank!
PyDevSRS Sep 25 '16 at 19:44 2016-09-25 19:44
source share