title: How do I get rmi registry to work on windows command prompt?
body: <p>So I need to work with some distributed systems on java RMI. I have already set a environment variable path to my JDK bin and so I can use javac and java commands on the command line.
  However, when I try to set the rmi registry using rmiregistry, it doesn't work. It doesn't return "rmiregistry is not a recognised internal or external command" but it runs but it stays running for ages and I have to press ctrl+C to stop it from running as it won't stop itself.</p>
  
  <p>The code I am entering into the command line is:</p>
  
  <pre><code>rmiregistry 8888 &amp;
  </code></pre>
  
  <p>I've tried that on Linux before and it seems to work how I want it to but it's not working on Windows. What can I do to get RMI working on the windows command line?</p>