Glassfish server does not start. NullPointeException
OK, Glassfish 5.1 doesn't exist for the moment. Continue with Glassfish 5.0 with this solution:
Just set the AS_JAVA
variable in your asenv.bat
file located here: C:\DEVENV\glassfish5\glassfish\config
.
File to edit: add last line
Relaunch your server....enjoy :
This looks to be this issue - https://github.com/eclipse-ee4j/glassfish/issues/22130.
GlassFish 5 does not work on JDK9, however GlassFish 6 works on JDK 11.