Classpath creation wrong for tomcat/shared (missing alfresco in path). Fixes #1.
Export JRE_HOME in scripts. Fixes #2