YT00‐Install Eclipse & Tomcat - zhamri/CSC584-Enterprise_Programming GitHub Wiki
- Go to: https://www.eclipse.org/downloads/
- Click "Download Packages"
- Choose -->
Eclipse IDE for Enterprise Java and Web Developers- Windows: AArch64 | x86_64
- macOS: AArch64 | x86_64
- Linux: AArch64 | riscv64 | x86_64
- Then install in your machine.
- Go to: https://tomcat.apache.org/
- Download Tomcat 10 or Tomcat 11 (ZIP version)
- Extract the file
- Remember the folder location (important for Eclipse)
- In Eclipse → go to
Serverstab- If not visible → Window → Show View → Servers
- Click:
- “No servers are available. Click this link…”
- Choose:
- Apache → Tomcat v10 or v11
- Browse to your Tomcat folder
- Click Finish
- File → New → Dynamic Web Project
- Project name:
MyJSPApp - Target Runtime: select your Tomcat
- Click Finish
- Right click project → New → JSP File
Name:
index.jsp
Add this code:
<%@ page import="java.util.Date" %>
<html>
<body>
<h1>Current Date is:</h1>
<%= new Date() %>
</body>
</html>- Right-click the project
- Click:
- Run As → Run on Server
- Choose Tomcat
- Click Finish
Browser will open:
http://localhost:8080/MyJSPApp/
References: