setting JAVA_HOME to version 1.6, when publishing