Issue
So I'm a beginner at JEE and I only just installed Glassfish server, the problem is that it displays the error: "GlassFish server could not be started with JDK 17(Default). Please select another Java SE Platform", I have found another similar issue, but I believe it was related to a JDK 11 wish is no longer supported however I have tested JDK 16 and 17 which are the latest versions.
Solution
For today Glassfish 5 supports only Oracle JDK 8 Update 144 or later. With Payara 5 you can use JDK 11
Answered By - Tadas B.
Answer Checked By - David Marino (JavaFixing Volunteer)