Log in

View Full Version : Newer Team; Need Help on Java.


Team4166
08-01-2013, 18:27
Our team is relatively new (this is our second year) and our programming team is even newer (first year, as our last team graduated). This is my first time using Java, and I keep getting an "Import section does not correspond to the specified codestyle used" error every time I attempt to import a Jaguar. I've been using import edu.wpi.first.wpilibj.Jaguar; as that is how I learned to import a Jaguar or other items at a programming workshop. All I'm trying to do is set up a Jaguar to drive and turn the robot, a seemingly simple task. If anyone can send a sample code or simple words of advice, my team and I would be seriously grateful. Thanks. :]

Jon Stratis
08-01-2013, 18:41
I'll try to get you an answer from our programers tonight, and post it back here. I'm betting the workshop you're talking about was the Splash in December, which our lead programmer was presenting for the Java session :)

If you or your team needs more help in Java, please feel free to get in touch with us - 2177@therobettes.com will get you straight to the students who can help! You're a little ways from the Cities, but if needed we might be able to set up something more in depth to help you out.

Team4166
08-01-2013, 18:44
Actually, I was at said workshop on kick-off day. It was nothing intricate, we just learned basics there. Apparently I didn't gain much from it...

Joe Ross
08-01-2013, 18:44
That is just a nit-pick warning, your code will function just fine with the warning. Netbeans would like all imports in alphabetical order. If you click on the warning, it will offer to organize the imports for you. You can also use Ctrl-Shift-I to organize the imports.

dheerm
08-01-2013, 18:45
Our team is relatively new (this is our second year) and our programming team is even newer (first year, as our last team graduated). This is my first time using Java, and I keep getting an "Import section does not correspond to the specified codestyle used" error every time I attempt to import a Jaguar. I've been using import edu.wpi.first.wpilibj.Jaguar; as that is how I learned to import a Jaguar or other items at a programming workshop. All I'm trying to do is set up a Jaguar to drive and turn the robot, a seemingly simple task. If anyone can send a sample code or simple words of advice, my team and I would be seriously grateful. Thanks. :]

My first question would be what IDE are you using? I recommend Netbeans with the FRC plugin.

If you need any additional help I'll be happy to help you. I'll private message you my personal email so that you can contact me .

Team4166
08-01-2013, 18:48
That is just a nit-pick warning, your code will function just fine with the warning. Netbeans would like all imports in alphabetical order. If you click on the warning, it will offer to organize the imports for you. You can also use Ctrl-Shift-I to organize the imports.

Oh wow.. That was an entire programming session wasted trying to figure out what our issue was. But now we know, and thank you oh so very much!

dheerm
08-01-2013, 18:48
That is just a nit-pick warning, your code will function just fine with the warning. Netbeans would like all imports in alphabetical order. If you click on the warning, it will offer to organize the imports for you. You can also use Ctrl-Shift-I to organize the imports.

I did not know that, we learn something new everyday don't we :)

Team4166
08-01-2013, 18:50
My first question would be what IDE are you using? I recommend Netbeans with the FRC plugin.

If you need any additional help I'll be happy to help you. I'll private message you my personal email so that you can contact me .

Yes, I'm using Netbeans with the FRC plug-in. I already got help, but thank you anyways.