title: How would one create a custom JVM launcher?
body: <p>There has been a history of "<em>how to launch an application without a main method</em>" questions, most stating something along the lines of "<em>you can't</em>". I noticed how JavaFX applications can now be launched simply by extending <code>Application</code>. I've been using a method similar to <code>Application.launch()</code>, but I've always seen the main method as boilerplate code in that situation. So I started looking for answers again.</p>
  
  <p>I found <a href="https://stackoverflow.com/a/11421618/2398375">this answer</a> linking us to where we can learn about creating our own JVM launchers, but sadly the article no longer exists. I've spent quite a while looking for anything that might hint me on what I should do, but no results.</p>
  
  <p><strong>My Question</strong></p>
  
  <p>How would one create a custom JVM launcher to launch an application based on what is being extended? For example, imagine a project with 1 declared class:</p>
  
  <pre><code>class MyApplcation extends App {
  
  } 
  </code></pre>
  
  <p>No main method is needed for the project to be launched, since it extends App. This is not the question, although it is my target goal. The question is <em>how could someone create a custom JVM launcher?</em></p>
  
  <p>My guess is that it would involve using some kind of base, to give us a skeleton of some sort, but I'm not sure where to find such a thing.</p>