title: How to use a different version of Java on the command line
body: <p>OK I have 2 different version of Java install on my machine (CentOS 5), the system defaults to 1.5.0_14 but I need to run a command on the command line with the newer version of Java. How can I pass the newer version in the command line?</p>
  
  <p>Sorry this is such a n00b question but I googled and didn't find anything, thanks.</p>