title: CLASSPATH variables not showing up for root user in CentOS 6.6
body: <p>I am running CentOS 6.6 on VmWare Player. I have added path </p>
  
  <pre><code>export CLASSPATH=$CLASSPATH:&lt;path/to/jars&gt;
  </code></pre>
  
  <p>of the required jar files to <strong><em>.bash_profile</em></strong> which resides in my home folder.</p>
  
  <p>Also on executing the following command:</p>
  
  <pre><code>gvanjoic@localhost$ echo $CLASSPATH
  </code></pre>
  
  <p>It displays the classpath as expected. But, there are some tasks that I need to run as root user. So on running the following commands, the output is not as expected.</p>
  
  <pre><code>gvanjoic@localhost: su
  Password:
  root@localhost gvanjoic$ echo $CLASSPATH
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>.
  </code></pre>
  
  <p>Consequently, I can't execute the tasks. What am I possibly doing wrong here. Help appreciated.</p>
  
  <p>FYI, <em>gvanjoic</em> is not in <em>sudoers</em> list.</p>