A simple adversite automation with Java