title: Kill java process from terminal automatically
body: <p>Is it possible to kill a java program's execution from terminal automatically after specific amount of time (when running not compiling).
  For example, I like to stop the following after 10 seconds:</p>
  
  <pre><code>java examples.Example
  </code></pre>