setting cache location and log4j folder