Changed start script and setting of JAVA_HOME.