Please see the installation tutorials in our wiki: http://infiniteautomation.com/wiki/doku.php?id=installation

Let us know if this helps resolve your issue. My guess is you don't have your JAVA_HOME set correctly. If you still have issues please post the full out put of the terminal when starting up.