Go to Post There is a very fine line between passion and emotion, sometime it gets crossed. Let's not confuse the two. - JohnBoucher [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 17-12-2013, 16:45
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Difficulty running and imaging.

I'm having a little difficulty imaging the cRIO to java, I might have done it but I'm not sure. I couldn't find a tutorial, so I just tried things that might work, and got one that ended up taking half an hour of waiting before I had to shut the computer down.

I'm also not sure how to run the code once I have imaged the cRIO, I can't find Set as Main Project anywhere, and trying to run it gives an error in a different file that is something along the lines of "fork=true". The error says that compile failed.
Reply With Quote
  #2   Spotlight this post!  
Unread 17-12-2013, 21:19
CJay's Avatar
CJay CJay is offline
Registered User
FRC #2977 (Sir Lancer Bots)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2010
Location: United States
Posts: 9
CJay is an unknown quantity at this point
Re: Difficulty running and imaging.

Are you using Netbeans? If you are you can right click on the project and there should be an option to Set as Main Project

Last edited by CJay : 17-12-2013 at 21:25.
Reply With Quote
  #3   Spotlight this post!  
Unread 17-12-2013, 23:38
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Difficulty running and imaging.

The mechanization of setting the main project is different in different netbeans versions. See http://wpilib.screenstepslive.com/s/...manual-id=7885

Can you post the entire error message?
Reply With Quote
  #4   Spotlight this post!  
Unread 18-12-2013, 16:29
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Difficulty running and imaging.

Quote:
Originally Posted by CJay View Post
Are you using Netbeans? If you are you can right click on the project and there should be an option to Set as Main Project
It turns out that right clicking on the background of the area to select a project is way different then right clicking on the project name, thanks for a tutorial with images.

For the other guy: Full error code:

1 error
C:/Users/Developer/sunspotfrcsdk/build.xml:56:
The following error occurred while executing this line:
C:/Users/Developer/sunspotfrcsdk/ant/compile.xml:21:
Compile failed; see the compiler error output for details.

(One of the lines in one of the xml's was something like fork=true, also I don't know where the compiler error output is.)
Reply With Quote
  #5   Spotlight this post!  
Unread 19-12-2013, 10:33
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
That error means that it was not able to build the code because of an error in your code. If you save your code do you see a red x (next to the line numbers) or a red underline in your code?
Reply With Quote
  #6   Spotlight this post!  
Unread 19-12-2013, 16:32
sthreet's Avatar
sthreet sthreet is offline
Registered User
AKA: scott threet
FRC #4692
 
Join Date: Oct 2012
Rookie Year: 2012
Location: Toutle Lake
Posts: 84
sthreet is an unknown quantity at this point
Re: Difficulty running and imaging.

Quote:
Originally Posted by nickmcski View Post
That error means that it was not able to build the code because of an error in your code. If you save your code do you see a red x (next to the line numbers) or a red underline in your code?
Thanks, java is a strange language.
Turns out that I made a few capitalization mistakes, JoyStick, timer.Delay, and it turns out While isn't a function.

Ok, I got a connection timed out error that said the error occurred in a bunch of files.

It said something about computer is not on the same subnet, just to double check subnet is supposed to be 255.0.0.0 and 10.xx.yy.9 is a valid ip, where xxyy is my team number, and imaging the cRIO will set it automatically, right?

Last edited by sthreet : 19-12-2013 at 16:44.
Reply With Quote
  #7   Spotlight this post!  
Unread 19-12-2013, 17:52
nickmcski nickmcski is offline
Registered User
AKA: Nicholas McCurry
FRC #1482 (Grandin Ghosts)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2012
Location: Canada
Posts: 112
nickmcski has a spectacular aura aboutnickmcski has a spectacular aura aboutnickmcski has a spectacular aura about
Difficulty running and imaging.

Quote:
Originally Posted by sthreet View Post
Thanks, java is a strange language.
Turns out that I made a few capitalization mistakes, JoyStick, timer.Delay, and it turns out While isn't a function.

Ok, I got a connection timed out error that said the error occurred in a bunch of files.

It said something about computer is not on the same subnet, just to double check subnet is supposed to be 255.0.0.0 and 10.xx.yy.9 is a valid ip, where xxyy is my team number, and imaging the cRIO will set it automatically, right?

That is the static IP you need to set on your coding computer to access the robot. What I did for my team was set the DHCP server on our wireless router do we have have a 'dynamic' IP on our computer.

Your cRIO should have the IP of 10.xx.yy.2
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 11:06.

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