Step 4: Create Your First Java Web Project
Note for IntelliJ IDEA Ultimate Edition Users (Jakarta EE Web App Creation)
If you’re using IntelliJ IDEA Ultimate Edition, creating a Jakarta EE web application is significantly easier, thanks to built-in tooling and project templates.
New Project from Template
- Create a New Project:
- Open IntelliJ IDEA.
- Go to
File > New > Project...
.
- Select Jakarta EE Option:
- In the left-hand menu, select
Jakarta EE
.
- In the left-hand menu, select
- Choose Project Settings:
- Project Name: Enter a name (e.g., “MyWebApp”).
- Project Location: Choose a directory to save your project.
- Template: Choose
Web application
. - Application Server: Select your configured Apache Tomcat server from the dropdown.
- IntelliJ IDEA will automatically configure the project structure and add the necessary (provided-scope) dependencies in your
pom.xml
(if you’re using Maven).
- Click “Next” and “Create”:
- IntelliJ IDEA will generate a project structure pre-configured for Jakarta EE development, including the
src/main/java
,src/main/webapp
, andWEB-INF
directories.
- IntelliJ IDEA will generate a project structure pre-configured for Jakarta EE development, including the