View Single Post
  #6   Spotlight this post!  
Unread 12-11-2012, 17:10
2185Bilal's Avatar
2185Bilal 2185Bilal is offline
Driver, Ld. Programmer, Electrical
AKA: Bilal Majeed
FRC #2185 (Ramazoidz)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Toronto, Canada
Posts: 110
2185Bilal will become famous soon enough
Re: Java Code Deploying Help

Quote:
Originally Posted by joelg236 View Post
That means that somewhere (I'm assuming in the WPIlibj or squawk), this is called.
Code:
System.exit(1);
If you could figure out what you're doing in your code that would cause to API to shutdown on you like that, you'll find out why that comes up. It's possible this might be something to do with how you deployed. (Did you image your CRIO correctly? Have you run java code on it before?)
Well, for the 2012 season we were using Labview, but this year we decided to use Java. So today, I re imaged the cRIO to work in a Java Developing Environment and I also formatted the image. And we have never run java on the cRIO before.

The way we deployed the code, was basically connected to our cRIO using a direct ethernet cable, we opened the Driver Station program and it showed us that we had communication. Then we opened netbeans and pressed the green play button to deploy the code. It did all the stuff it shoudl (built the project, downloaded it, rebooted the cRIO) and then it stops at the line that i posted before.

I am not sure if this is a programming issue or electrical issue. and also if it would be helpful, i can post my code in this thread
__________________
RAMAZOIDZ

2009 Toronto West Regional - Regional Winners
2009 Waterloo Regional - Regional Winners
Reply With Quote