Simplified execution of Java tutorials

Change-Id: Ie80ba4822d29a3a82f9a88940e71e9960c969eb0