Where Is Java_Home Set Linux?
Contents

Where is Java_home set in Ubuntu?

Setting JAVA_HOME environment variable in Ubuntu

  • Open a terminal.
  • Open “profile” file using following command: sudo gedit /etc/profile.
  • Find the java path in /usr/lib/jvm. If it’s JDK 7 the java path would be something similar to /usr/lib/jvm/java-7-oracle.
  • Insert the following lines at the end of the “profile” file.

10 июн. 2018 г.

Where can I find Java_home?

Verify JAVA_HOME

  • Open a Command Prompt window (Win⊞ + R, type cmd, hit Enter).
  • Enter the command echo %JAVA_HOME% . This should output the path to your Java installation folder. If it doesn’t, your JAVA_HOME variable was not set correctly.
Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest