Where Is My Jdk Located Linux?
Contents

After the installation process is complete, jdk and jre are installed to /usr/lib/jvm/ directory, where is the actual java installation folder.

Where is my jdk installed?

The JDK software is installed on your computer, for example, at C:Program FilesJavajdk1. 6.0_02.

Where is jdk located Ubuntu?

Setting JAVA_HOME environment variable in Ubuntu

  1. Open a terminal.
  2. Open “profile” file using following command: sudo gedit /etc/profile.
  3. 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.
  4. Insert the following lines at the end of the “profile” file.
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