title: How can I execute shell script from a jar file
body: <p>I am using shell commands inside java. When I run the project in netbeans it is working well. But when I run the jar file of the project through the command line it is giving this error</p>
  
  <pre>
  java.io.IOException: Cannot run program "sudo rabbitmqctl list_queues": error=2, No such file or directory
  </pre>
  
  <p>Can you tell if there is a way to run shell commands from jar file?</p>