title: Chef cookbook - reload PATH
body: <p>I just installed java using chef cookbook and updated PATH environment variable for all users (added new file to /etc/profile.d/).</p>
  
  <p>Is it possible to tell chef to reload PATH variable?</p>
  
  <p>When I do something like this:</p>
  
  <pre><code>execute "java_check" do
    command "java -version"
  end
  </code></pre>
  
  <p>Is says that java could not be found.</p>
  
  <p>It works fine when I log out, log in again and then run chef recipe.</p>