Alright, so, I’m a really new programmer. And when I say really new, I mean I started 3 weeks ago, and all of my learning has been from youtube. So if any answers could be in layman terms, it would be much appreciated!
So, to start programming our robot, I created the program outline in RobotBuilder, then exported that to Eclipse. When I open the program in Eclipse however, it tells me that it cannot import most of the services it needs to run.
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard;
import edu.wpi.first.wpilibj.;
import edu.wpi.first.wpilibj.buttons.;
These are an example of some of the things it won’t import. The exact message is “import edu cannot be resolved”. I have tried uninstalling eclipse, reinstalling it, and running a new program on it before trying to use RobotBuilder. I have checked the JARs, and they aren’t corrupt.
Without these services, I cannot create pretty much any of the variables and objects I need (like Joysticks, solenoids, or speed controllers). Any ideas?
You have the FRC Eclipse plugins installed, right?
When you create a robot project in eclipse, it sets up certain settings that don’t get done if you merely import a project from Robot Builder. Create a dummy robot project in eclipse and then see if the issues go away.
Yes, I do have the pluggins installed. I followed the instructions on FRC on how to download Java and Eclipse.
Thank you Joe Ross! I tried your suggestion, and it worked perfectly! Good thing too, I was getting close to just wiping the computer and starting from scratch. I really appreciate the help!
1 Like
We had the same symptom on our first two eclipse installations (two laptops at our shop). I followed the screensteps at home on my on box and saw the same symptom, but found as Joe indicates I also noticed that once I opened an example project, all was well with other RobotBuilder projects as well.
But back at the shop, our original eclipse installations did not recover the same way-- even the examples were missing the wpilib. The only difference was that when we downloaded at the shop we downloaded Eclipse/Java not Eclipse/C++ (a student was on the page and asked me which one we should use-- since I was not following along with them I told them we needed Java).
Anyway, I realized the potential issue when I set up my own box, so we switched to the C++ version at the shop too as we should have originally been instructed by screeensteps and then it behaved as Joe described.
Just wanted to mention this in case someone ends up on this thread and they made the same mistake or team had made. Pretty late in the season though to be arriving here. Still, maybe this will be useful.