I just downloaded the GlassFish 5.0 archive - Full Platform, unzipped it, I run it through the command line.
asadmin start-domain
pr
GlassFish 5.1 also not working with Java 9 or later versions.
glassfish 5.1 also needs java 8 with the AS_JAVA hack in asenv.conf/bat file.