Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Difficulty running and imaging. (http://www.chiefdelphi.com/forums/showthread.php?t=123325)

sthreet 17-12-2013 16:45

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.

CJay 17-12-2013 21:19

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

Joe Ross 17-12-2013 23:38

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?

sthreet 18-12-2013 16:29

Re: Difficulty running and imaging.
 
Quote:

Originally Posted by CJay (Post 1313989)
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.)

nickmcski 19-12-2013 10:33

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?

sthreet 19-12-2013 16:32

Re: Difficulty running and imaging.
 
Quote:

Originally Posted by nickmcski (Post 1314572)
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?

nickmcski 19-12-2013 17:52

Difficulty running and imaging.
 
Quote:

Originally Posted by sthreet (Post 1314703)
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


All times are GMT -5. The time now is 22:34.

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