Start Here
For our team we will be using Java to program our robot. This page will help you setup your computer to be able to program in Java.
Requirements
- Make sure you have WPILib setup on your computer.
JDK Installation
To run any Java code, you need a JVM (Java Virtual Machine) compiler. This allows you to convert your high-level code into machine code (Binary). To get the JVM, we need to download a version of JDK (Java Development Kit)
Find a OpenJDK build above JDK 8
- Recommended
- Visit Oracle Java Builds and find the latest version of a JDK build
- Legacy
- Visit Oracle Java Archive Builds and find the version of a JDK build that is required for your project.
- Recommended
Scroll down to OS builds and select your OS
Click on one of the download link
Recommended: x64 Installer
- Locate your downloaded exe file in File Explorer, and double click to install
- Follow the Installer prompts
- Once your at the end of the installation, click "Close"
- You are done installing JDK! 🎉
IDE
For FRC it is recommended to use Visual Studio Code (VSCode), but for our team we will primarily use IntelliJ. IntelliJ is a powerful Java IDE that allows to you pretty much write any java applications but has some special that has been useful for our team, but it doesn't matter if you use VSCode or IntelliJ. In this tutorial we will cover VSCode and IntellJ installation.
VSCode
- Go to code.visualstudio.com
- Click Download
- Run through the installer
- Once done with the installation, you should have VSCode installed! 🎉
IntelliJ
There are 2 versions of IntelliJ you can download.
- Community Version: This version is free and Open-Sourced
- Free
- Download Link (SCROLL DOWN FOR THE DOWNLOAD)
- Ultimate Version: This is a paid version of IntelliJ with extra features.
- You get a 30-Day Free Trial
- You can use Student License to get it for Free
- Download Link
- NOTE: The version of IntelliJ you use doesn't matter, you can either choose Community Version or Ultimate Version.
- Community Version: This version is free and Open-Sourced
Select your OS, and click "Download"
Once downloaded, locate the file in your File Explorer
Double-click the installation file
Run through the installation prompts
- When your arrive at this prompt, select these boxes. Then click "Next"
Once done with the installation, you should have IntelliJ installed! 🎉
Java Tutorial
If you're new to Java, take a look at this Java tutorial by Programming with Mosh