title: How to execute cmd commands through java
body: <p>I have jar file(<strong>selenium-server-standalone-2.44.0.jar</strong>) kept at c:\ drive.
  I need to navigate to C drive and execute below command through java</p>
  
  <blockquote>
    <p>java -jar selenium-server-standalone-2.44.0.jar -role hub</p>
  </blockquote>