fix log path and java warnings