can we change the path of java installed folder?how?
<p>I am learning <code>Hadoop</code>.
On my windows system java is installed at <code>C:/Program files/Java</code> , but the problem is, I believe the white space in <code>program files</code>.</p>

<p>After setting all hadoop configuration files, When I run the command <code>namenode format</code> it give the following error.</p>

<pre><code>$ bin/hadoop namenode -format bin/hadoop: line 350: C:\Program
Files\Java\jdk1.7.0_71/bin/java: No such file or directory
</code></pre>

<p>So is there any way by which i can change the java folder location to <code>C:/Java</code> from <code>C:/Program files/Java</code></p>

<p>Thanks.</p>