Installation Guide
Get Forge up and running in minutes
Quick Installation
Extract ZIP
Extract forge-1.2.9.zip to C:\Program Files\forge
Run Installer
Execute install.bat as Administrator
Restart Terminal
Close and reopen Command Prompt or PowerShell
Verify
Run forge version to confirm
What the Installer Does
The install.bat script automatically configures your system:
| Environment Variable | Purpose |
|---|---|
FORGE_HOME |
Points to your Forge installation directory |
PATH |
Adds %FORGE_HOME%\bin for global access |
Manual Installation
If you prefer to set up Forge manually without running the installer:
Step 1: Set FORGE_HOME
Open Command Prompt as Administrator and run:
setx FORGE_HOME "C:\Program Files\forge"
Step 2: Add to PATH
Run this command to append Forge to your PATH:
setx PATH "%PATH%;%FORGE_HOME%\bin"
Step 3: Restart Terminal
Close and reopen your terminal for changes to take effect.
Verify Installation
Test that Forge is installed correctly:
forge version
forge help
Directory Structure
After extraction, your Forge directory will look like this:
forge/
├── bin/ # Scripts (added to PATH)
│ ├── forge.bat
├── lib/ # JAR files
│ └── forger-1.2.9.jar
├── docs/
│ └── README.md
└── install.bat # Installation script
Troubleshooting
Problem: "forge is not recognized"
The command forge is not found. Try these steps:
- Check if
FORGE_HOMEis set:echo %FORGE_HOME% - Check if it's in PATH:
echo %PATH% - Re-run the installer:
%FORGE_HOME%\install.bat - Restart your terminal completely
Problem: "Java is not installed or not in PATH"
Forge requires Java 21 or later. Install it from Adoptium:
java -version
javac -version
Both commands should work and show Java 21+.
Problem: Permission Denied
Forge installation requires Administrator privileges. Make sure to:
- Right-click
install.bat - Select "Run as administrator"
Next Steps
Once installed, check out the Documentation to learn how to:
- Create your first
build.forgefile - Use Groovy and Kotlin DSL syntax
- Manage dependencies and repositories
- Run common build commands