title: Make an OSX app bundle for a Java program without user interface stay in Dock while the app is running
body: <p>I tried to create my first OSX app bundle for a Java application today. It works, but there is one problem and I could not find any solution for it.</p>
  
  <p>The Java application is a web server without user interface. What happens when I start the app bundle, is the following:</p>
  
  <ul>
  <li>The app icon bounces several times in the Dock and then disappears (I guess because no GUI is being displayed?).</li>
  <li>However, the application is still running. Web server is available and I can see the running application in Activity Monitor and stop it from there.</li>
  </ul>
  
  <p>The main purpose of this app bundle is to provide a demo application to people who are interested in trying the server out - easily without any setup, etc.</p>
  
  <p>The application should remain in the Dock and users should be able to close (stop) the server in the Dock.</p>
  
  <p>I imagine that this might be configurable in Info.plist somehow, but don't have any experience with it. Or probably there is something else I can do in order to achieve the desired behavior?</p>
  
  <p>Thanks for any ideas or hints.</p>