This repository gives students a quick start to setting up a FRC robot project in Java. We use powerful GradleRIO to build our code.
Do these steps once to set up your development computer for FRC Java programming.
Go to www.putty.org click the download here button, install the appropriate (32 vs. 64) version. Open and complete the installation wizard with the default settings
Check to see if Java 8 Java Development Kit (JDK) is installed by running javac -version
in a terminal window. If the JDK is installed you will see something similar to:
$ javac -version
javac 1.8.0_77
You can download the JDK here. Select the 64-bit JDK appropriate for your development computer.
Download and install the IntelliJ IDEA development environment from here.
Follow the steps below to use our quickstart repository.
- Download an archive or fork this repo. Forking will let you practice making changes and committing them to your own GitHub account.
- Clone the repository you just forked to your development computer.
- Open a terminal window and change directory to the
quickstart
directory you just cloned to your development computer. - Run
./gradlew idea
on macOS/Linux andgradlew idea
on Windows to set up the project for IntelliJ. The first time you run this GradleRIO will download a bunch of dependencies. - Open
quickstart.ipr
to open the project in Intellij.
This repository has a small "Hello World" program to test your installation with. Go to the quickstart directory in a terminal window and run:
# lines starting with "$" are the commands you type
$ gradlew build
...some stuff
BUILD SUCCESSFUL
$ java -classpath build/classes/java/main org.strykeforce.quickstart.Robot
Hello from Quickstart!