add JAVA_HOME and generic coloriser to rc.