title: Trying to run a java application from a shell script on Ubuntu 10.04
body: <p>My java program was written on a windows machine and I am trying to get it installed and running on a Ubuntu 10.04 machine. I have created a .tar.gz file with myProgram.jar in it as well as 5 supporting library .jar files in a lib folder. Where do I put these files? Do I need to extract it on the Linux machine to a usr/bin folder? Does the shell script go inside the tar.gz? I have read that if you write the shell script on a windows machine you can have issues once you move it to the Linux machine, so I am writing the shell script on the Linux machine using gedit. I am just not sure what to do next.
  So far in my script I have,</p>
  
  <pre><code>#!/bin/bash 
  java -jar myProgram.jar
  </code></pre>
  
  <p>I am going to try and extract the tar.gz file to the usr/bin directory and see if it runs. 
  Any suggestions or help would be greatly appreciated.
  Thanks in advance,
  Ray</p>