Before answering, please note that I am not familiar with the implementation you are talking about (I generally retract Jetty and insert it when I need an HTTP server in my modules). Therefore, I will answer as a whole, but perhaps it makes your mind think in a direction convenient for you.
Am I right to use this implementation?
It depends on the limitations of the trial task. Assuming that the implementation complies with these limitations, and you are ready to live with any flaws that it has, then there is nothing really wrong with its use. If available, this is fair play.
Why is it indicated that the JDK has libraries that are not in the JRE? Does the JDK provide additional JRE libraries?
Firstly, the statement made in this matter is false. Obviously, the implementation included in the JRE.
In general, the JDK always has the ability to do this, and specifically libraries are deployed with JDKs that are not deployed with JREs ( see this page ). In addition, depending on the installation, it is possible that the installed JRE extensions are installed ( see this page ).
source share