Let's understand something. JavaEE consists of a number of specifications. When you install an Application Server (Payara for example), you install all of the specifications at once. For example there's a specification for an ORM called JPA (Java Persistence API), a specification to build Component Based Web Applications called JSF (Java Server Faces), a specification to build REST web services and clients called JAX-RS.
So as you might guess, there's not only one way to build a simple Hello World application in JavaEE.
Secondly, the JavaEE spec has a specific structure of folders that looks something like this (simplified):
/projectname/src/main/java
/projectname/src/main/resources
/projectname/src/main/resources/META-INF
/projectname/src/main/webapp
/projectname/src/main/webapp/WEB-INF
Inside the /projectname/src/main/java
we put all the java classes that we need.
Inside the /projectname/src/main/webapp
we put html files, css files, javascript files, etc.
Inside the /projectname/src/main/webapp/WEB-INF
goes some optional configuration files, such as web.xml and beans.xml.
For simplicity we will use the NetBeans IDE (it's free) to build our first JavaEE Application. You can find it here. Choose the JavaEE version and install it.
../NetBeansProjects/HelloJavaEE/target
.Voila! That's your first app using JavaEE technology. You should now start creating other "Hello World" apps using different specifications like JPA, EJB, JAX-RS, JavaBatch, etc...