title: Running a .py file from Java
body: <p>I am trying to execute a .py file from java code. I move the .py file in the default dir of my java project and I call it using the following code:</p>
  
  <pre><code>    String cmd = "python/";
      String py = "file";
      String run = "python  " +cmd+ py + ".py";
      System.out.println(run);
      //Runtime.getRuntime().exec(run);
  
      Process p = Runtime.getRuntime().exec("python  file.py");
  </code></pre>
  
  <p>Either using variable run, or the whole path or "python file.py" my code is running showing the message build successful total time 0 seconds without execute the file.py. What is my problem here?</p>