title: java: find a class with main method automatically
body: <p>Is there a way to tell jvm to look for a class with entry <code>main</code> method automatically rather than to specify it when invoking <code>java ClassWithMainMethod</code>?</p>
  
  <p>In other words, I have directory with many compiled classes one of which has <code>main</code> method and I want to only specify that directory.</p>