title: running java program from python script
body: <p><img src="https://i.stack.imgur.com/sLomR.jpg" alt="enter image description here"></p>
  
  <p>I am trying to use a python script to </p>
  
  <p>1) getting the Pid of a java program and,
  2) using that pid to run JVMRuntimeClient.class</p>
  
  <p>but nothing is happening</p>
  
  <p>Here is my script:-</p>
  
  <pre><code>import subprocess
  import os
  
  process = subprocess.Popen('java -cp .Workspace.TestProject.bin.VirtualMemorySimulatorPart3')
  pid=str(process.pid)
  os.popen('java .Workspace.TestProject.bin.JVMRuntimeClient -pid' + pid)
  print(pid)
  exit()
  </code></pre>