title: Run class in Jar file
body: <p>If you have a jar file called <code>myJar.jar</code> located in <strong>/myfolder</strong> and you want to use the class called <code>myClass</code> from it, how do you go about doing it from the command line?</p>
  
  <p>I thought it would be to go into the directory and say <code>java -cp myJar.jar.myClass</code> but that isn't working. Any help would be appreciated.</p>