title: How to run a Java application as Windows service using WinRun4J
body: <p>I'm trying to run a Java application as a Windows service with WinRun4J.</p>
  
  <p>I copied WinRun4J64c.exe in my application directory and placed the following service.ini file beside:</p>
  
  <pre><code>service.class=org.boris.winrun4j.MainService
  service.id=MyAPP
  service.name=MyAPP
  service.description=some description
  
  classpath.1=./lib/*
  classpath.2=WinRun4J.jar
  
  [MainService]
  class=play.core.server.NettyServer
  </code></pre>
  
  <p>But if I start the service with: <code>WinRun4J64c.exe --WinRun4J:RegisterService</code> I get:</p>
  
  <pre><code>Service control dispatcher error: 1063
  </code></pre>
  
  <p>What is wrong?</p>