I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line.
asadmin start-domain
pr
Edit asenv.bat put set AS_JAVA=/usr/lib/jvm/java-8-oracle and asenv.conf AS_JAVA="/usr/lib/jvm/java-8-oracle"
It works