Installation#
Get Jac installed and ready to use in under 2 minutes.
Requirements#
- Python 3.12+ (check with
python --version)
Quick Install#
The jaseci package is a meta-package that bundles all Jac ecosystem packages together. This installs:
jaclang- The Jac language and compilerbyllm- AI/LLM integrationjac-client- Full-stack web developmentjac-scale- Production deploymentjac-super- Enhanced console output
Verify the installation:
This also warms the cache, making subsequent commands faster.
Installation Options#
Minimal Install (Language Only)#
If you only need the core language:
Individual Plugins#
Install plugins as needed:
# AI/LLM integration
pip install byllm
# Full-stack web development
pip install jac-client
# Production deployment & scaling
pip install jac-scale
# Enhanced console output
pip install jac-super
Virtual Environment (Recommended)#
# Create environment
python -m venv jac-env
# Activate it
source jac-env/bin/activate # Linux/Mac
jac-env\Scripts\activate # Windows
# Install Jac
pip install jaseci
IDE Setup#
VS Code (Recommended)#
Install the official Jac extension for the best development experience:
Option 1: From Marketplace
- Open VS Code
- Click Extensions in the sidebar (or press
Ctrl+Shift+X/Cmd+Shift+X) - Search for "Jac"
- Click Install on "Jac Language Support" by Jaseci Labs
Or install directly: Open in VS Code Marketplace
Option 2: Quick Install
Press Ctrl+P / Cmd+P and paste:
Features:
- Syntax highlighting for
.jacfiles - Intelligent autocomplete
- Real-time error detection
- Hover documentation
- Go to definition
- Graph visualization
Cursor#
- Download the latest
.vsixfrom GitHub releases - Press
Ctrl+Shift+P/Cmd+Shift+P - Select "Extensions: Install from VSIX"
- Choose the downloaded file
Verify Installation#
Create a test file test.jac:
Run it:
Expected output:
Troubleshooting#
"command not found: jac"#
Your Python scripts directory isn't in PATH. Try:
Or add Python scripts to PATH:
# Find the path
python -c "import site; print(site.USER_BASE + '/bin')"
# Add to ~/.bashrc or ~/.zshrc
export PATH="$PATH:$(python -c 'import site; print(site.USER_BASE)')/bin"
Permission Errors#
Use --user flag:
Conflicting Packages#
Use a virtual environment (see above) to isolate Jac from other Python projects.
For Contributors#
To work on Jac itself:
git clone --recurse --depth 1 https://github.com/Jaseci-Labs/jaseci
cd jaseci
pip install -e ./jac[dev]
See the Contributing Guide for development setup.
Next Steps#
- Hello World - Write your first program
- Your First App - Build a complete application