title: Creation of a windows service for RMI registry
body: <p>I want to create a windows service for starting a RMI service on my system. The command I use to run this on cmd is</p>
  
  <blockquote>
    <p>C:\Program Files\Java\jdk1.7.0_67\jre\bin\rmiregistry.exe 
    -J-Djava.rmi.server.useCodebaseOnly=false 11100</p>
  </blockquote>
  
  <p>I have created a service using windows sc.exe using the command</p>
  
  <blockquote>
    <p>sc.exe create registry_service binPath= "C:\Program
    Files\Java\jdk1.7.0_67\jre\bin\rmiregistry.exe 
    -J-Djava.rmi.server.useCodebaseOnly=false 11100"</p>
  </blockquote>
  
  <p>But on starting this service I get a pop-up saying </p>
  
  <blockquote>
    <p>"Error1053: service did not respond to start or control request in
    timely fashion."</p>
  </blockquote>
  
  <p>Can anyone tell where i went wrong?</p>