title: Execute classes with no entry point from within jar?
body: <p>I want to be able to execute arbitrary classes in the /bin directory of a jar file without unjarring. </p>
  
  <p>I have been able to do this with a jar for Saxon by doing:</p>
  
  <pre><code>java -cp saxon9he.jar net.sf.saxon.Query -s:sax-tmp/courses.xml -o:q1.txt q1.xql
  </code></pre>
  
  <p>I honestly don't know why this works though. I can't find documentation of the cp flag and this command pattern hasn't worked for my project.</p>