OFBIZ-13403 - Getting issue details... STATUS
Agent-Centric OFBiz Setup Guide (Fully Automated)

This guide is designed for any preferred agentic AI of your choice (e.g. Antigravity/ etc.) to follow when instructed to set up Apache OFBiz on a user's machine. It assumes zero manual intervention from the user after the initial request.

User Instructions

To trigger the full setup, simply tell the agent:

"Perform a full local setup of Apache OFBiz, load the demo data, and open the Manufacturing app for me."


Agent Execution Workflow

Step 1: Environment Preparation

  1. Check for JDK 17+:
    • Agent runs java -version.
    • If missing, agent searches for the appropriate OpenJDK (e.g., Temurin 17) and provides the download link or attempts to install via a package manager if available.
  2. Workspace Setup:
    • Agent identifies a suitable directory (e.g., E:\ofbiz or C:\ofbiz).

Step 2: Automated Download & Extraction

  1. Fetch OFBiz:
    • Agent uses search_web to find the latest stable Apache OFBiz download URL.
    • Agent uses run_command (e.g., Invoke-WebRequest or curl) to download the .zip file.
  2. Extract Content:
    • Agent uses Expand-Archive to extract the ZIP to the target directory.

Step 3: Database Initialization (Load Demo Data)

  1. Run Gradle Load:
    • Agent navigates to the directory and executes gradlew.bat loadAll.
  2. Monitor Progress:
    • Agent tracks the output in the background using command_status.
    • Agent waits for the "BUILD SUCCESSFUL" message.

Step 4: Server Startup

  1. Start OFBiz:
    • Agent runs gradlew.bat ofbiz in the background.
  2. Health Check:
    • Agent monitors runtime/logs/ofbiz.log for the phrase "OFBiz is started and ready".
    • Agent verifies port 8443 is listening using netstat.

Step 5: Automated UI Navigation & Validation

  1. Browser Login:
  2. Smoke Test:
    • Agent navigates through core Manufacturing screens (BOM, Routing, MRP) to ensure data is loaded correctly.
    • Agent takes screenshots/recordings as proof of successful setup.


Once setup is complete, the agent remains active to assist with further exploration, report generation, or custom configuration.