How to set java_home in linux bash_profile

    how to set java path in ubuntu
    how to set java path in ubuntu bashrc
    how to set java home path in ubuntu
    how to install java and set path in ubuntu
  • How to set java path in ubuntu
  • How to set java home path in linux

  • How to find java path in ubuntu
  • How to set jdk path in eclipse in ubuntu
  • How to find java home path in linux
  • How to set java path in linux permanently
  • How to set jdk path in eclipse in ubuntu...

    How to set JAVA_HOME Environment Variable in Ubuntu

    Some applications require you to set the JAVA_HOME environment variable to your JDK installation directory.

    So in this tutorial I will explain how to find the path to the Java installation directory and set JAVA_HOME in Ubuntu Linux.

    First of all we need to identify the path to the JAVA_HOME environment variable. It should be the full path to the Java installation folder where the bin directory is located.

    Following command should output the correct path to JAVA_HOME (Not always).

    For example, If you Install Openjdk 8, path is something similar to the following.

    For OpenJDK 9 the path is:

    If you Install Oracle JDK, The path is the location where you stored the development kit.

    For example, If you stored java development kit on /opt directory, The full path to the JAVA_HOME should be something similar to the following:

    Set JAVA_HOME Variable

    To set JAVA_HOME environment variable on Ubuntu, open the /etc/bash.bashrc file and add the following line:

    (The value should be the path to the Java folder)

    Then, use the source co

      how to set java path for maven in ubuntu
      how to set jdk path in netbeans in ubuntu