Getting Started
The BBj Language Server provides comprehensive IDE support for BBj development in Visual Studio Code. This guide will help you get up and running quickly.
Prerequisites
Before installing the extension, ensure you have:
- Visual Studio Code version 1.67.0 or higher
- BBj version 25.00 or higher installed
- BBjServices running locally (required for full functionality)
- Java 17 or higher (for the Java interop service)
Installation
From VS Code Marketplace
- Open VS Code
- Go to the Extensions view (
Ctrl+Shift+XorCmd+Shift+X) - Search for "BBj"
- Click Install on "BBj Language Support"
Alternatively, install directly from the VS Code Marketplace.
From VSIX File
If you have a .vsix file:
- Open VS Code
- Go to Extensions view
- Click the
...menu and select "Install from VSIX..." - Select the downloaded
.vsixfile
Initial Configuration
After installation, configure the extension to work with your BBj installation:
Enable BBj Language Service
BBj 25.00 introduces a new server component, the BBj Language Service. You must enable it in Enterprise Manager:
- Open BBj Enterprise Manager
- Navigate to the server settings
- Enable the "BBj Language Service"

Setting BBj Home
- Open VS Code Settings (
Ctrl+,orCmd+,) - Search for "bbj.home"
- Set the path to your BBj installation directory (e.g.,
/opt/bbjorC:\bbj)
Alternatively, add to your settings.json:
{
"bbj.home": "/path/to/bbj"
}
Configuring Classpath
To enable Java class completions, configure the classpath:
{
"bbj.classpath": "default"
}
The extension will automatically detect classpath entries from your BBj installation.
Testing Your Setup
- Create a new file with a
.bbjextension - Type some BBj code:
print "Hello, World!"
- You should see:
- Syntax highlighting
- Code completion suggestions when typing
- Validation errors if any syntax issues exist
Running Your First Program
With a .bbj file open:
- Press
Alt+Gto run as a GUI application - Or press
Alt+Bto run as a BUI web application - Or press
Alt+Dto run as a DWC application
You can also right-click in the editor and select the run option from the context menu.
Troubleshooting
Language Server Not Starting
If features like completion aren't working:
- Check the Output panel (
View>Output) - Select "BBj Language Server" from the dropdown
- Look for error messages
Java Integration Not Working
The Java interop service requires:
- BBjServices to be running
- Proper
bbj.homeconfiguration - Valid classpath configuration
Start the interop service manually if needed:
cd java-interop
./gradlew run
Next Steps
- Learn about Features available in the extension
- Configure Extension Settings
- Explore the Architecture of the language server (Developer Guide)