Skip to content

YT00‐Install Eclipse & Tomcat

Zhamri Che Ani edited this page Jun 15, 2026 · 3 revisions

STEP 1: Install Eclipse IDE

  1. Go to: https://www.eclipse.org/downloads/
  2. Click "Download Packages"
  3. Choose --> Eclipse IDE for Enterprise Java and Web Developers
    • Windows: AArch64 | x86_64
    • macOS: AArch64 | x86_64
    • Linux: AArch64 | riscv64 | x86_64
  4. Then install in your machine.

STEP 2: Download Apache Tomcat

  1. Go to: https://tomcat.apache.org/
  2. Download Tomcat 10 or Tomcat 11 (ZIP version)
  3. Extract the file
  4. Remember the folder location (important for Eclipse)

STEP 3: Configure Tomcat in Eclipse

  1. In Eclipse → go to Servers tab
    • If not visible → Window → Show View → Servers
  2. Click:
    • “No servers are available. Click this link…”
  3. Choose:
    • Apache → Tomcat v10 or v11
  4. Browse to your Tomcat folder
  5. Click Finish

STEP 4: Create Dynamic Web Project

  1. File → New → Dynamic Web Project
  2. Project name: MyJSPApp
  3. Target Runtime: select your Tomcat
  4. Click Finish

STEP 5: Create JSP File

  1. 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>

STEP 6: Run JSP File

  1. Right-click the project
  2. Click:
    • Run As → Run on Server
    • Choose Tomcat
  3. Click Finish

Browser will open:

http://localhost:8080/MyJSPApp/

References:

  1. Install & Configure Apache Tomcat 11 in Eclipse IDE (2025) | Configure Tomcat Web Server in Eclipse
  2. https://en.wikipedia.org/wiki/Eclipse_(software)

Clone this wiki locally