Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Cross the Road Electronics/ Talon SRX Library Issues (http://www.chiefdelphi.com/forums/showthread.php?t=153944)

iKlein4531 19-01-2017 20:42

Cross the Road Electronics/ Talon SRX Library Issues
 
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!

soundfx 20-01-2017 02:00

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.

darrellt 20-01-2017 15:19

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?

darrellt 21-01-2017 14:01

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.


All times are GMT -5. The time now is 21:49.

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