Chromebooks
Learn how to code with BoxLang on your Chromebook using Linux development environment!

We love Chromebooks! This comprehensive guide will help you run and develop BoxLang applications on both Intel-based and ARM-based Chromebooks. We'll install all prerequisites, set up BoxLang, configure VS Code with the BoxLang extension, and create your first application.
Requirements
Hardware: 4GB RAM Chromebook minimum (8GB+ recommended for better performance)
Operating System: Chrome OS with Linux development environment enabled
Java Runtime: OpenJDK 21 or higher
Storage: At least 2GB free space for development tools
Enabling Linux Development Environment
Chromebooks provide excellent development capabilities through their built-in Linux development environment (based on Debian). This allows you to run a full Linux container alongside Chrome OS seamlessly.
To enable Linux development:
Open Settings > Advanced > Developers
Turn on Linux development environment
Follow the setup wizard to configure your container
Choose appropriate storage size (4GB minimum, 8GB+ recommended)

Accessing the Linux Terminal
You'll interact with the Linux development environment through the Terminal application, which provides full command-line access to your Debian container.
To open the terminal:
Press Alt + Shift + T (keyboard shortcut)
Or search for "Terminal" in the launcher
Or use the Everything button and search for "Terminal"

Click on the Penguin tab to access your Linux environment:

Setting Up the Development Environment
Step 1: System Updates and Essential Tools
Start by updating your system and installing essential development tools:
Step 2: Installing Java 21
Modern Debian distributions now include OpenJDK 21. Try the simple installation first:
If OpenJDK 21 isn't available in your distribution's repositories, install it manually:
Manual Java Installation
If the package manager installation didn't work, install Java manually:
Modern Note: Most current Debian-based distributions now include OpenJDK 21 in their repositories, making the simple apt install method the preferred approach.
Step 3: Installing BoxLang
BoxLang installation is straightforward with the official installer script:
Verify the installation:

The REPL (Read-Eval-Print Loop) opens, allowing you to start coding immediately, run BoxLang files, start web servers, and much more!
Setting Up VS Code with BoxLang
Step 4: Installing Visual Studio Code
VS Code provides excellent BoxLang development support with syntax highlighting, debugging, and integrated development features.
Download and install VS Code:
Visit the VS Code download page
Choose the Linux version and select the .deb package appropriate for your architecture:
Intel/AMD64: Download the x64 .deb package
ARM: Download the ARM64 .deb package
Install the downloaded package:

Step 5: Installing the BoxLang Extension
Open VS Code from your applications menu
Access Extensions: Click the Extensions icon (⬜) or press
Ctrl+Shift+XSearch for BoxLang: Type "BoxLang" in the search box
Install the extension: Click "Install" on the official BoxLang extension by Ortus Solutions


The BoxLang extension provides:
Syntax Highlighting: Full BoxLang syntax support
Code Completion: Intelligent IntelliSense for BoxLang
Debugging Support: Set breakpoints and debug your applications
Integrated Terminal: Run BoxLang commands directly
Web Server Integration: Start and manage BoxLang web servers
REPL Integration: Interactive BoxLang development
Creating Your First BoxLang Application
Step 6: Your First BoxLang Class
Let's create your first BoxLang application to test everything is working correctly.
Create a new file:
Create a project folder:
Open VS Code in this folder:
Create a new file called
Hello.bx
Add the following code:

Run your application:
Method 1: Right-click in the editor and select "BoxLang: Run File"
Method 2: Use the command palette (
Ctrl+Shift+P) and search for "BoxLang: Run File"Method 3: Use the terminal:
boxlang Hello.bx
Expected output:
Step 7: Creating a Web Application
Now let's create a web application using BoxLang's templating system.
Create a template file called index.bxm:
Step 8: Starting the BoxLang Web Server
Start the integrated web server:
Open Command Palette: Press
Ctrl+Shift+PSearch for BoxLang: Type "BoxLang" to see available commands
Select "BoxLang: Start Web Server"

You'll see output in the debug console:
Access your web application:
VS Code will automatically open your browser, or you can manually navigate to http://localhost:8080

Congratulations! 🎉 You've successfully created and deployed your first BoxLang web application on a Chromebook!
Next Steps and Development Tips
Performance Optimization for Chromebooks
Memory Management:
Close unused browser tabs when developing
Use
boxlang --helpto see memory configuration optionsMonitor system resources in Chrome OS Task Manager
Development Best Practices:
Use the integrated VS Code terminal for BoxLang commands
Leverage VS Code's built-in Git support for version control
Take advantage of VS Code's IntelliSense for BoxLang development
Useful BoxLang Commands for Development
Additional Resources
📚 BoxLang Documentation - Complete language reference
🌐 BoxLang GitHub - Source code and issues
💬 Community Discord - Get help from the community
🎓 BoxLang Examples - Sample applications and tutorials
Troubleshooting Common Issues
Java-related issues:
BoxLang server issues:
VS Code extension issues:
Restart VS Code if BoxLang commands aren't working
Check the Output panel for BoxLang extension logs
Ensure the BoxLang binary is in your PATH
Conclusion
You've successfully set up a complete BoxLang development environment on your Chromebook! This setup provides:
✅ Full Java 21 development environment ✅ BoxLang runtime with REPL support ✅ VS Code with BoxLang extension ✅ Integrated web server capabilities ✅ Modern development workflow
Your Chromebook is now ready for professional BoxLang development. Whether you're building web applications, APIs, or exploring the language features, you have everything needed to create amazing BoxLang applications.
Pro Tip: This entire guide was written and tested on a Lenovo Duet 5 Chromebook, proving that Chromebooks are excellent development machines for BoxLang! 💻✨
Happy coding with BoxLang on your Chromebook! 🚀
Last updated
Was this helpful?

