Go to Post Warning: My opinion is worthless at inspection. - DonRotolo [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 04-13-2016, 02:35 PM
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
JAVA in FRC and FTC

Folks,

I've been mentoring a team that uses Labview for FRC and a different team that uses Android Studio JAVA for FTC.

We've been asked to move to FRC JAVA for next year because our senior programmer (who preferred Labview) graduates and the school system is beginning to teach JAVA.

I installed Eclipse IDE and looked at some code examples from various teams.

Things were fine until I tried to compile and send code to the RoboRIO.....then things got sour.

First Eclipse told me it could not find "javac"...no paths set up....checked Internet and think I fixed paths.....

After the fix....Android Studio would not open....the JAVA_HOME path I set up was causing problems.

My question is....are the two IDE's compatible? If so...what gyrations do I need to go through to get them to play well together.

Doc
Reply With Quote
  #2   Spotlight this post!  
Unread 04-13-2016, 03:19 PM
Arhowk's Avatar
Arhowk Arhowk is offline
FiM CSA
AKA: Jake Niman
FRC #1684 (The Chimeras) (5460 Mentor)
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Lapeer
Posts: 542
Arhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to beholdArhowk is a splendid one to behold
Re: JAVA in FRC and FTC

Quote:
Originally Posted by docdavies View Post
Folks,

I've been mentoring a team that uses Labview for FRC and a different team that uses Android Studio JAVA for FTC.

We've been asked to move to FRC JAVA for next year because our senior programmer (who preferred Labview) graduates and the school system is beginning to teach JAVA.

I installed Eclipse IDE and looked at some code examples from various teams.

Things were fine until I tried to compile and send code to the RoboRIO.....then things got sour.

First Eclipse told me it could not find "javac"...no paths set up....checked Internet and think I fixed paths.....

After the fix....Android Studio would not open....the JAVA_HOME path I set up was causing problems.

My question is....are the two IDE's compatible? If so...what gyrations do I need to go through to get them to play well together.

Doc
What you should've done was kept what you had than setup a new JRE entry in your eclipse to point to the same one that android pointed to. (It sounds like the autoconfig that was picked up by eclipse was a JRE and not a JDK).

I'm not familiar with how android studio works, you'll have to look at how to configure the compiler for it
__________________
FRC Team 1684 - Head Programmer (2013-2016)
FRC Team 5460 - Programming Mentor (2015-2016)

FIRST in Michigan - Technical Crew (2015-continuing)
Reply With Quote
  #3   Spotlight this post!  
Unread 04-17-2016, 09:31 PM
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: JAVA in FRC and FTC

Thank you for the info...but I'm not sure how to go about doing what you
suggest.

Can you lead me through it?
Reply With Quote
  #4   Spotlight this post!  
Unread 04-18-2016, 12:53 PM
pblankenbaker pblankenbaker is offline
Registered User
FRC #0868
 
Join Date: Feb 2012
Location: Carmel, IN, USA
Posts: 102
pblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of lightpblankenbaker is a glorious beacon of light
Re: JAVA in FRC and FTC

The WPI lib group has provided some excellent step by step instructions (with screen shots), demonstrating how to get Eclipse installed and configured to enable programming the roboRIO in Java. See:

http://wpilib.screenstepslive.com/s/4485/m/13809

Hope that helps.
Reply With Quote
  #5   Spotlight this post!  
Unread 04-19-2016, 08:21 PM
docdavies's Avatar
docdavies docdavies is offline
Doc Davies
FRC #0346 (RoboHawks)
Team Role: Mentor
 
Join Date: Mar 2010
Rookie Year: 1998
Location: Richmond, VA
Posts: 70
docdavies is an unknown quantity at this point
Re: JAVA in FRC and FTC

That's how I got it installed.

The problem started when I tried to use the Android programming IDE and the Eclipse IDE....
Reply With Quote
  #6   Spotlight this post!  
Unread 04-23-2016, 01:19 PM
domi domi is offline
Registered User
FRC #1796
 
Join Date: Apr 2016
Location: Queens, New York
Posts: 9
domi is on a distinguished road
Re: JAVA in FRC and FTC

do you prefer java than c++
Reply With Quote
  #7   Spotlight this post!  
Unread 04-24-2016, 05:25 PM
dmelcer9 dmelcer9 is offline
Registered User
AKA: Daniel
FRC #0810 (Mechanical Bulls)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2012
Location: Smithtown
Posts: 34
dmelcer9 is an unknown quantity at this point
Re: JAVA in FRC and FTC

I'm not sure what caused the problem, but a possible workaround could be to create another user account on the computer that you use to program each robot. Install eclipse in one account and android studio in another account.
Reply With Quote
  #8   Spotlight this post!  
Unread 04-24-2016, 06:13 PM
AllenGregoryIV's Avatar
AllenGregoryIV AllenGregoryIV is offline
Engineering Coach
AKA: Allen "JAG" Gregory
FRC #3847 (Spectrum)
Team Role: Coach
 
Join Date: Jul 2008
Rookie Year: 2003
Location: Texas
Posts: 2,547
AllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond reputeAllenGregoryIV has a reputation beyond repute
Send a message via AIM to AllenGregoryIV
Re: JAVA in FRC and FTC

I'm not sure why Android Studio don't run, but I can tell you they are compatible, I have them both installed and working on multiple computers.
__________________

Team 647 | Cyber Wolf Corps | Alumni | 2003-2006 | Shoemaker HS
Team 2587 | DiscoBots | Mentor | 2008-2011 | Rice University / Houston Food Bank
Team 3847 | Spectrum | Coach | 2012-20... | St Agnes Academy
LRI | Alamo Regional | 2014-20...
"Competition has been shown to be useful up to a certain point and no further, but cooperation, which is the thing we must strive for today, begins where competition leaves off." - Franklin D. Roosevelt
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 08:20 AM.

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