How to Set Java_Home in Unix

In Unix-based operating systems, including Linux distributions, various paths are stored in variable documents. This makes it so that when you are in the Terminal, you can use a single command instead of entering the full path of that command at any given time. To change the "Java_home," which is the home directory for your Java, you must edit the path profile for your user.

Instructions

    • 1

      Open your Terminal. This process differs depending on the operating system.

    • 2

      Type "vi ~/.bash_profile" without quotes, and then press "Enter."

    • 3

      Locate the "export JAVA_HOME=" path. Change the path to whatever folder you want to use, including the Java name at the end.

    • 4

      Change the "export PATH=$PATH:" value on the next line to the path to your java folder.

    • 5

      Save and close the file.

Related Searches:

References

Comments

Related Ads

Featured