Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

root of java installation

Tags:

java

hadoop

am trying to set up apache hadoop in my system. In the procedure page it says "edit the file conf/hadoop-env.sh to define at least JAVA_HOME to be the root of your Java installation. "

What does setting "JAVA_HOME" and "root of java partition" actually mean. Does the root mean the place from where java gets loaded(ie, output of "which java" command)??

Am using Fedora 12

like image 860
emiljho Avatar asked Apr 21 '26 10:04

emiljho


2 Answers

JAVA_HOME denotes the installation folder of a JRE or SDK. It contains binaries, libraries and documentation. You can find out the root installation directory by typing

$ which java

The part before the bin/java will typically be your JAVA_HOME.

like image 75
miku Avatar answered Apr 24 '26 01:04

miku


In my case (Debian) it is: /usr/lib/jvm/java-6-sun, file /usr/bin/java is a symlink to /etc/alternatives/java which is a symlink to /usr/lib/jvm/java-6-sun/jre/bin/java

like image 36
wlk Avatar answered Apr 23 '26 23:04

wlk