Java installation root

I am trying to configure apache hadoop on my system. The procedure page says: "edit the conf / hadoop-env.sh file to define at least JAVA_HOME to be the root of your Java installation."

Which means setting "JAVA_HOME" and "root from java partition". Does the root mean the place where java is loaded from (ie The output of the "which java" command)?

Using Fedora 12

+3
source share
3 answers

JAVA_HOMEindicates the installation folder of the JRE or SDK. It contains binary files, libraries and documentation. You can find out the installation root by typing

$ which java

The part before bin/javawill usually be yours JAVA_HOME.

+6
source

(Debian) : /usr/lib/jvm/java-6-sun, /usr/bin/java /etc/alternatives/java, /usr/lib/jvm/java-6-sun/jre/bin/java

+1

The path / System / Library / Frameworks / JavaVM.framework / Versions / Some_version_number / Home / is where mine is in Macbook pro (Lion).

Here is mine: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/

When you type "what java", the symlink is what is returned, not the actual Java home path that you need. This path must be defined in the conf / hadoop-env.sh file, which is located in the root of the Hadoop package.

I am using Hadoop and I ran into this problem. The path I posted fixed my problem.

+1
source

Source: https://habr.com/ru/post/1785823/


All Articles