log java env and cmd