Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Issue with the NavX Library (http://www.chiefdelphi.com/forums/showthread.php?t=153923)

Poseidon5817 19-01-2017 16:46

Issue with the NavX Library
 
One of the students on our programming team is having trouble uploading code to the robot. In her build path is:
  • WPILIB
  • Cscore
  • OpenCV
  • Navx Library
  • TalonSRX Library
  • JRE System Library
In Eclipse, the code has no errors; the code shows no issues regarding not recognizing the AHRS class in the NavX library. However, upon trying to upload, the deployer gives an error stating that class AHRS is not found, even though it is fine in Eclipse. build.properties points to the correct library locations for the TalonSRX library and NavX library too.

Sidenote: I had the same issue after upgrading on kickoff, but managed to fix it. I can't for the life of me remember how though.

jbc218 19-01-2017 17:31

Re: Issue with the NavX Library
 
This year, you no longer have to change build.properties, so whatever changes or additions you made there you should undo. Instead, what you're supposed to do, is put those libraries (navx, talonSRX, or any other user library) into your C:\Users\(current user)\wpilib\user\java\lib folder, make sure to update your build path on Eclipse, and then restart Eclipse. You only have to do that with user libraries, so you don't have to do anything to your wpilib, networktables, opencv, or cscore libraries.

whitetail 19-01-2017 19:14

Re: Issue with the NavX Library
 
I put them in C:\Users\(current user)\wpilib\user\java\lib folder but then it gives me a big ! over the project folder and doesn't recognize the AHRS. Did I miss a step?

slibert 19-01-2017 20:42

Re: Issue with the NavX Library
 
Quote:

Originally Posted by whitetail (Post 1633676)
I put them in C:\Users\(current user)\wpilib\user\java\lib folder but then it gives me a big ! over the project folder and doesn't recognize the AHRS. Did I miss a step?

As noted above, third party libraries are now located in a standardized location.

Please review the updated FRC RoboRIO Java Library Getting Started instructions, which provide details on configuring Eclipse.

Poseidon5817 19-01-2017 23:28

Re: Issue with the NavX Library
 
Quote:

Originally Posted by slibert (Post 1633716)
As noted above, third party libraries are now located in a standardized location.

Please review the updated FRC RoboRIO Java Library Getting Started instructions, which provide details on configuring Eclipse.

That is what I did! Thank you so much everyone, I will pass this on tomorrow!


All times are GMT -5. The time now is 13:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi