Simpler interface for java tasks.