added java licence acceptance and java env variables