I am trying to install Glassfish5 on my Eclipse. I have the following details for everything:
My Environment Path Variable: C:\Program Files\Java\jdk-13.0.1
I have also tried with the bin at the end of it.
When I try to install Glassfish it gives me JDK required rather than JRE, Please find it in the attached image.
I have tried all the available solutions like this question but nothing works. I am using windows 10. I installed the right JDK and not JRE from this link.
Please let me know what can I do? Thank you.
解决方案
When I try to install Glassfish it gives me JDK required rather than
JRE
As far as I know, Glassfish 5 does not work with any JDK version > 8. Or more precisely:
I can't get Glassfish 5 to work with any JDK > 8
I can't find any documentation stating that it should work with Java 9 or later.
The lack of any formal documentation from Oracle on the situation is frustrating.
Please let me know what can I do?
There is a simple workaround for you unless using GlassFish is essential: use Payara instead, since it is based on GlassFish and works with JDK 11 on Eclipse.
Payara version 5.193.1 definitely works with JDK 11 since I am using them together.