Java EE helps create web pages. Java EE is an API so to use Java EE you need a Java EE compatible server like Glassfish developed by Oracle or Tomcat, etc. You just need to add it to the library and use it as usual.
This article I will guide people to install Java EE on Eclipse with Tomcat server.
+ First , if your computer does not have JDK, immediately download the latest version of JDK at: https://www.oracle.com/java/technologies/javase-downloads.html (Download the latest Java distribution, or compatible version for your device).
+ Download Eclipse for JavaEE at: https://www.eclipse.org/downloads/packages/release/2020-06/r/eclipse-ide-enterprise-java-developers (The second version in Eclipse packages).
+ Download a Java EE compatible server and add it to Eclipse, here I choose Tomcat, download Tomcat at: https://tomcat.apache.org/download-90.cgi (Please download the latest version at the time you download to have the best experience).
Then open Eclipse, choose Window -> Preferences -> Server -> Runtime Environment -> Add -> Select the server type then add the path and end (Here I choose Tomcat 9.0 and I To Tomcat at drive D, note that the server you downloaded is just a zip version, no need to install, just unzip and place in any folder and choose the path of the server to the place where you put the directory OK).
Create a Dynamic web Project project in Eclipse
+ Currently, Dynamic Web Project is rarely used, people prefer Maven Project because of its superiority, to switch to Maven Project from Dynamic Web Project project in Eclipse, right click on the newly created project and select Configure -> Convert to Maven Project.
+ Then add the runtime server to Libraries so you can use Java EE libraries (You can choose any Server that is compatible with Java EE, here I choose Tomcat 9.0).
+ Right click on the Project and select Properties (Alt + Enter) -> Java Build Path -> Add Library -> Server Runtime.
+ Next and select Server -> Finish and save. OKE! Done. You can now create Java EE-based web apps using Eclispe.