Fix java config in tool