title: How to know if a jar file is already running?
body: <p>After a research in google i found good answers like:</p>
  
  <p>1)using <strong>jps</strong> or <strong>jps -l</strong> to get the jars running under JVM</p>
  
  <p>OK with this answer but if the user has not java installed at all and i run my jar using for example a .bat file and a folder with java JRE.</p>
  
  <p>Also gps function is experimental and only JDK contais it and not JRE.</p>
  
  <p>2)<a href="https://stackoverflow.com/questions/20168332/check-if-jar-running-from-shell">Check if jar running from shell</a></p>
  
  <p>I need a solution for this on windows platform.Although a platform indepedent solution is always prefferable.</p>
  
  <p>Something more about jps(<strong>cause it is Platform Independent</strong>) I will appreciate an answer where you provide me a good solution with <strong>jps</strong> function.</p>