Setup Your Local Machine 🖥️
The purpose of this guide is to help onboard new programmers by installing the necessary software on their local machine. By the end, you’ll have everything needed to build and deploy robot code, run devcontainers, and collaborate with the team.
Prerequisites
Section titled “Prerequisites”- Windows 11 laptop
- Internet access
- Admin privileges
- Basic command line knowledge
- ~20 minutes
1. Install IntelliJ IDEA
Section titled “1. Install IntelliJ IDEA”-
Download IntelliJ IDEA:
- https://www.jetbrains.com/idea/download/
- Choose Community (free) or Ultimate (if you have a license) → Windows x64.
-
Run the installer and follow the prompts. Accept defaults unless you have a personal preference.
-
After installation, open IntelliJ and install or enable these recommended plugins:
- Docker (for interacting with containers)
- Gradle (usually built-in)
- FRC Plugin
-
Clone and open the repo:
- Use IntelliJ’s VCS menu: VCS → Get from Version Control → paste (replace OUR_REPO with the repo name): https://github.com/BC-Robotics-4504/OUR_REPO
- Or clone on the command line and open the folder in IntelliJ:
Terminal window git clone https://github.com/BC-Robotics-4504/bcr-docscd bcr-docs- Open the project in IntelliJ (File → Open)
- Press shift twice to open the command pallate, then search for “add build configurations” select it to add the build, simulate, run robot code build configs to your local copy.
2. Install NI Game Tools
Section titled “2. Install NI Game Tools”These tools are required to communicate with the roboRIO.
- Download the latest NI FRC Game Tools from the official FIRST link: 👉 NI Game Tools Download
- Run the installer and accept defaults.
- Restart your computer after installation.
3. Install WPILib
Section titled “3. Install WPILib”WPILib is the core library and tooling for FRC robot programming.
- Go to the official releases: 👉 WPILib GitHub Releases
- Download the latest WPILib Installer for Windows.
- Run the installer. It will:
- Install VS Code FRC extensions
- Install the RoboRIO imaging tool
- Set up Gradle for robot builds
4. Install OpenJDK 17
Section titled “4. Install OpenJDK 17”OpenJDK 17 (LTS) is the recommended Java runtime for our Gradle and robot builds.
- Download Eclipse Temurin (OpenJDK 17) from Adoptium: 👉 https://adoptium.net/temurin/releases/?version=17
- Choose the Windows x64 MSI installer for an easy install.
- Run the MSI installer and accept defaults.
- If the installer offers to set JAVA_HOME, enable that option.
- If JAVA_HOME wasn’t set automatically, add it manually:
- Settings → System → About → Advanced system settings → Environment Variables
- Under System variables: New
- Variable name: JAVA_HOME
- Variable value: C:\Program Files\Eclipse Adoptium\jdk-17.x.x (adjust for the installed folder)
- Edit the System PATH and add: %JAVA_HOME%\bin
-
Restart any open terminals (or your PC) so environment changes take effect.
-
Verify the installation:
PowerShell:
javac --version5. Install Docker Desktop
Section titled “5. Install Docker Desktop”Docker lets us run Dev Containers for a consistent environment across all machines.
- Download from Docker Desktop for Windows.
- Run the installer, accept defaults.
- Enable WSL 2 backend when prompted.
- Restart your computer.
- Verify Docker is running from the system tray.
Check Docker works:
docker --version6. Install WSL (Windows Subsystem for Linux)
Section titled “6. Install WSL (Windows Subsystem for Linux)”WSL provides a Linux environment on Windows. This is what Dev Containers use.
- Open PowerShell as Administrator.
- Run:
wsl --install- This installs Ubuntu by default. Restart when prompted.
- After reboot, set a username/password for your Ubuntu environment.
- Update Ubuntu packages:
sudo apt update && sudo apt upgrade -y- Verify:
wsl --list --verbose