title: I can't run a python script from java and I think it's because the script does not have execute permissions
body: <p>I'm trying to run a python script whenever a button on my gui (swing) is pressed.  However, the script never runs and I'm not sure how to fix this. I know the script works fine independently, it should be py not python because windows, and my file system ntfs.   </p>
  
  <p>So far I've been trying to use code that can be summarized as below:</p>
  
  <pre><code>myBtn.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent e) {
          try {
            Process p = Runtime.getRuntime().exec("py myScript.py");
  
          } catch (IOException ioe) {
            ioe.printStackTrace();
          }
        }
  });
  </code></pre>
  
  <p>I don't think I can chmod ntfs stuff but I tried setting permissions via right clicking the python file and trying to mess with the security settings.  Full control for the script to users does nothing.</p>
  
  <p>The python script has the following permissions, my guess is my code isn't working because it does not have execute permissions.</p>
  
  <pre><code>-rw-r--r--
  </code></pre>