JAVA_HOME not setting
The JAVA_HOME variable you set with set JAVA_HOME=
is relevant only for the current shell. Given that you are starting a new shell when executing bin/start-all.sh
you need to "export" the environmental variable to make it available in the global scope:
export JAVA_HOME=/usr/lib/jvm/java-6-sun