Function to set java 7 path.