|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
So... Lately I've been having some issues in Eclipse getting the Talon SRX's and the Cross the Road Electronics library to register in Eclipse...
Things I have done: 1. Installed the CTRE Toolsuite (Didn't change anything in Eclipse, and can't find the jar and class name to manually add it into Eclipse like some teams have had to do) 2. Browed ALL OVER online and have managed to find ABSOLUTELY NOTHING about what I need (which is to find out how to do a "manual install" of the CTRE library in Eclipse and get the CANTalon class running) Any help would be appreciated! Thanks! |
|
#2
|
||||
|
||||
|
Re: Cross the Road Electronics/ Talon SRX Library Issues
If the account you develop with is not an admin, try checking the admin profiles <user>/wpilib/user/<language>/lib directory for the libraries. Copy those into your respective location for whatever account you develop on, then eclipse *should* include them in your project. If not, select your project root in eclipse, hit Alt-Enter, click on Java Build Path, and add an external jar from wherever your libraries are stored.
If you still can't find the libraries, PM me and I can send you the jar files. |
|
#3
|
|||
|
|||
|
Re: Cross the Road Electronics/ Talon SRX Library Issues
We have installed the CTRE libraries and updated class paths to include the jar file. But we are still having difficulty getting the import to work:
When we try eclipse auto-completion, it doesn't find anything past 'com.ctre.' When tried just using the import that we think we should be using: import com.ctre.CANTalon; But when we try to instantiate a CANTalon object, we get errors. Maybe this is an eclipse IDE configuration issue? |
|
#4
|
|||
|
|||
|
Re: Cross the Road Electronics/ Talon SRX Library Issues
We figured this out -- we had added the CTRLib.jar to file set of our 'installed JRE', in an attempt to resolve the reference. (Window->Preferences->Installed JREs->Edit)
This turned out to be a bad idea. When we removed this from the installed JRE list, the problem was resolved. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|