Log in

View Full Version : package edu.wpi.first.wpilibj.buttons does not exist


rushtone
05-02-2012, 18:13
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\RushBotP roject\build
Compiling 6 source files to C:\Users\david\Documents\NetBeansProjects\RushBotP roject\build
C:\Users\david\Documents\NetBeansProjects\RushBotP roject\src\team4188\OI.java:4: package edu.wpi.first.wpilibj.buttons does not exist
import edu.wpi.first.wpilibj.buttons.Button;
C:\Users\david\Documents\NetBeansProjects\RushBotP roject\src\team4188\OI.java:5: package edu.wpi.first.wpilibj.buttons does not exist
import edu.wpi.first.wpilibj.buttons.DigitalIOButton;
C:\Users\david\Documents\NetBeansProjects\RushBotP roject\src\team4188\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

neal
05-02-2012, 18:56
Are you importing edu.wpi.first.wpilibj.buttons.* ?

rushtone
05-02-2012, 19:39
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