I am trying to create a new server in Eclipse using Glassfish but when I try to specify the path to my JDK Eclipse wont recognize it. I am getting the same error with Payara as well. I am currently running Antergos Linux. See the image under for example of the error.
Error message in Eclipse:
Any ideas what is causing this? I dont know what information to publish here so please request if there is something you want to know.
Neither GlassFish 5 nor Payara Server work with JPMS (introduced in Java 9) yet.
The current target is for Payara to be compatible with Java 11, as seen on the support lifecycle: https://www.payara.fish/support_lifecycle
What this means is that it will probably be the 5.184 version of Payara that will be the first to (officially) support JPMS.
The solution for now is to continue to use Java 8, which should be available at least until January 2019.