I added JAVA_HOME to the unix scripts for OrientDB.

I tested it on Solaris 10 and CentOS 5.8.