Go to Post May we always remember those who have shaped our lives for through us they shape those around us. - mechanicalbrain [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-01-2017, 20:42
iKlein4531's Avatar
iKlein4531 iKlein4531 is offline
Registered User
AKA: Ian Klein
FRC #4531 (STEMpunk)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Two Rivers, WI
Posts: 1
iKlein4531 is an unknown quantity at this point
Exclamation 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!
Reply With Quote
  #2   Spotlight this post!  
Unread 20-01-2017, 02:00
soundfx's Avatar
soundfx soundfx is offline
Registered User
AKA: Aaron J
FRC #3238 (Cyborg Ferrets)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2014
Location: Anacortes, WA
Posts: 17
soundfx is an unknown quantity at this point
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.
__________________


"I got 99 problems but 0.999 ain't 1."
~Orteil
Reply With Quote
  #3   Spotlight this post!  
Unread 20-01-2017, 15:19
darrellt darrellt is offline
Registered User
FRC #2635
 
Join Date: Oct 2009
Location: Lake Oswego, Oregon
Posts: 9
darrellt is an unknown quantity at this point
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?
Reply With Quote
  #4   Spotlight this post!  
Unread 21-01-2017, 14:01
darrellt darrellt is offline
Registered User
FRC #2635
 
Join Date: Oct 2009
Location: Lake Oswego, Oregon
Posts: 9
darrellt is an unknown quantity at this point
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.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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