Epoch 1 — Project Introduction & Environment Setup
Epoch 1 — Project Introduction & Environment Setup
Deliverables (what each student / group must submit for this epoch)
Short README (in the project repo) stating installed versions (JDK, NetBeans, Tomcat, Git) and machine OS version.
- Screenshots (or short screencast) of:
- java -version and javac -version in a new Command Prompt.
- NetBeans → Tools → Java Platforms showing the JDK entry.
- Tomcat http://localhost:8080 page in a browser.
- The test JSP page output (e.g., “Hello JSP — environment OK”).
A Git repository initialized (can be private) with a top-level env-check/ folder containing the README and screenshots.
- (Optional) mvn -v output if students install Maven CLI.
Evaluation: Pass/Fail for correct setup; small points (5–10%) for timeliness and completeness.
Installation & verification:
1) Install JDK 1.8_231 (Java SE 8)
Download JDK 8 (1.8.0_231 or equivalent) from a trusted provider (Oracle/Adoptium/etc.).
Run the installer and install to the default path or a path such as:
1
C:\Program Files\Java\jdk1.8.0_231
- Set environment variables (recommended GUI method):
Option 1:
- Open Control Panel → System → Advanced system settings → Environment Variables.
- Under System variables, click New… and create:
- Find Path → Edit → New → add:
1
C:\Program Files\Java\jdk1.8.0_231\bin
- Click OK, close dialogs.
Option 2: Set via an elevated Command Prompt (one-line):
setx PATH "C:\Program Files\Java\jdk1.8.0_231\bin" /M
- Open a new Command Prompt (must be new to pick up env changes) and run:
java -version
javac -version
> Expected output should include 1.8.0_231 (or the JDK 8 build you installed).
2) Install NetBeans 13
- Download Apache NetBeans 13 installer and run it.
- Start NetBeans.
- Register the JDK inside NetBeans:
- Tools → Java Platforms → Add Platform → browse to C:\Program Files\Java\jdk1.8.0_231 → Finish.
- Verify the platform shows up and is set as default (or note it).
- Quick build test:
- File → New Project → Java → Java Application → create a tiny app and run to ensure compile/run works.
- Deliverable check: Screenshot of NetBeans → Tools → Java Platforms showing JDK path.
3) Install Apache Tomcat 10.0.23
- Download Tomcat 10.0.23 ZIP distribution, extract to:
1
C:\apache-tomcat-10.0.23
- Edit conf/tomcat-users.xml to allow NetBeans (manager) deployment. Add users and roles, for example: ```xml
1
2
3
4
5
6
7
8
- Save the file.
3. Start Tomcat:
- Double-click C:\apache-tomcat-10.0.23\bin\startup.bat or run as admin:
```cmd
cd C:\apache-tomcat-10.0.23\bin
startup.bat
- Check console for errors.
- Open a browser to:
1
http://localhost:8080
You should see the Tomcat welcome page.
Firewall note: If Tomcat page fails to appear, open Windows Firewall settings and allow inbound TCP port 8080 or allow Java/Tomcat process.
4) Register Tomcat in NetBeans
- In NetBeans: Services → Servers → Add Server.
- Choose Apache Tomcat or TomEE → Next.
- Browse to Tomcat installation folder C:\apache-tomcat-10.0.23. Use the username/password you added in tomcat-users.xml (e.g., tomcatadmin / ChangeMe123!) if NetBeans asks. Finish.
- Start/Stop Tomcat from NetBeans and test deployment.
Deliverable check: Screenshot of NetBeans Services showing Tomcat and “Started” status.
5) (Optional but recommended) Install Maven CLI & verify
NetBeans includes Maven, but you may want Maven on PATH:
- Download Maven binary, extract to e.g. C:\apache-maven-3.8.x.
- Add C:\apache-maven-3.8.x\bin to PATH system variable (Environment Variables).
- Verify:
mvn -v
Expected: Maven version output and Java home pointing to your JDK.