


🥺 Was this helpful? Please add a comment to show your appreciation or feedback. Join the nixCraft community via RSS Feed or Email Newsletter. He wrote more than 7k+ posts and helped numerous readers to master IT topics. Vivek Gite is the founder of nixCraft, the oldest running blog about Linux and open source. Once again you need to type the following command to activate the path settings immediately: Next setup PATH / JAVA_PATH variables as follows: You need to setup global config in /etc/profile OR /etc/bash.bashrc file for all users: Please note that the file ~/.bashrc is similar, with the exception that ~/.bash_profile runs only for Bash login shells and. Tip: Use the following command to find out exact path to which java executable under UNIX / Linux: Alternatively, type the following command to activate the new path settings immediately: Just logout and login back to see new changes.

If your path is set to /usr/java/jdk1.5.0_07/bin/java, set it as follows:Įxport JAVA_HOME=/usr/java/jdk1.5.0_07/bin/javaĮxport PATH=$PATH:/usr/java/jdk1.5.0_07/binįeel free to replace /usr/java/jdk1.5.0_07 as per your setup. Set JAVA_HOME as follows using syntax export JAVA_HOME=.
