package edu.wpi.first.wpilibj.buttons does not exist

I’ve set up a new system for software development, following the “Getting Started with Java for FRC” guide.

I’ve created a new IterativeRobot-based project.

The editor seems happy that it’s found the WPILibJ (code completion works and all that), but when I try to compile (F6 or Shift-F11) I get zillions of “package X does not exist” errors:

Created dir: C:\Users\david\Documents\NetBeansProjects\RushBotProject\build
Compiling 6 source files to C:\Users\david\Documents\NetBeansProjects\RushBotProject\build
C:\Users\david\Documents\NetBeansProjects\RushBotProject\src eam4188\OI.java:4: package edu.wpi.first.wpilibj.buttons does not exist
import edu.wpi.first.wpilibj.buttons.Button;
C:\Users\david\Documents\NetBeansProjects\RushBotProject\src eam4188\OI.java:5: package edu.wpi.first.wpilibj.buttons does not exist
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
C:\Users\david\Documents\NetBeansProjects\RushBotProject\src eam4188\RushBot.java:10: package edu.wpi.first.wpilibj does not exist
import edu.wpi.first.wpilibj.IterativeRobot;

and so on.

What am I doing wrong?

David

Are you importing edu.wpi.first.wpilibj.buttons.* ?

OI.java, created when I created the project from the IterativeRobot template, does import edu.wpi.first.wpilibj.buttons.Button. I’ve not made any changes to IO.java (it’s still an empty class other than two imports).

David