Download GlassFish 4.1. Make sure to download the full platform, not the web profile. Please do not use GlassFish 4.1.1, GlassFish 4.1.2 or GlassFish 5 - it will not work for the lab: http://download.oracle.com/glassfish/4.1/release/index.html.
Please download and install the latest version of Maven.