title: How to compile and run Java Program with Sublime Text 2 on Ubuntu 14.04?
body: <p>When i am trying to compile and run Java code with Sublime Text 2, i am getting the following error</p>
  
  <pre><code>[Errno 13] Permission denied
  [cmd:  [u'build_java.sh', u'Ashru']]
  [dir:  /home/ashrumochan/sublimeapps]
  [path: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games]
  [Finished]
  </code></pre>
  
  <p>I am on Ubuntu 14.04.
  Please help how to solve this error.....</p>
  
  <p>This is my build_java.sh file content</p>
  
  <pre><code>#!/bin/bash 
  # compiles all java files within directory and runs first argument
  for file in *.java
  do
  echo "Compiling $file"
  javac $file
  done
  echo "Running $1"
  java $1
  </code></pre>
  
  <p>Thsi is my JavaC.sublime-build content</p>
  
  <pre><code>{
     "cmd": ["build_java.sh", "$file_base_name"]
  }
  </code></pre>