# Oorian Quick Start - NetBeans (Ant)

A minimal Oorian web application for NetBeans IDE using Ant.

## Prerequisites

- JDK 17+
- Apache NetBeans 21+
- Apache Tomcat 9.x (this project uses J2EE / `javax.servlet`)

## Why Tomcat 9?

Apache NetBeans has a known bug ([#7934](https://github.com/apache/netbeans/issues/7934)) where
Ant-based web projects do not fully support Jakarta EE 10. This project uses the J2EE version of
Oorian (`OorianJ2eeLib`) with Tomcat 9 as a workaround. For Jakarta EE (Tomcat 10+/11), use the
**Maven** or **Gradle** starter project instead.

## Setup

1. Open NetBeans and select **File > Open Project**
2. Navigate to this directory and open **OorianQuickStartApp**
3. Configure Tomcat in **Tools > Servers > Add Server**
4. Right-click the project > **Properties > Run** and select your Tomcat server
5. Click **Run** (F6)

The application deploys to `http://localhost:8080/HelloWorld/`

## Project Structure

```
src/java/com/oorian/bootstrap/
    HelloWorldApplication.java   - Application entry point (@WebListener)
    MyPage.java                  - Home page (@Page("/"))
web/
    oorian.min.js                - Oorian client runtime
    WEB-INF/web.xml              - Java EE Servlet 3.0 descriptor
    META-INF/context.xml         - Tomcat context configuration
libs/
    oorian-core.jar              - Oorian framework library
```

## Dependencies

The `oorian-core.jar` is included in the `libs/` directory. NetBeans references it via `nbproject/project.properties`.
