|
Re: Having trouble deploying code
There's a number of settings to check in eclipse. I don't have our team laptop to check what all they are. Did you make sure to go through the WPI lib steps: https://wpilib.screenstepslive.com/s...ller-java-only
I seem to remember something like checking boxes for wpilib and networktables after right clicking on the project -> properties -> Java Build path.
There's also checking to make sure that you have the team number set up correctly in your project and when you set up your rio.
I'm assuming you have the same language on the rio now as you did last time you used it as well.
Really need more information from the output console to help.
Some notes from the last time I tried to help someone remotely trouble shoot why code wasn't loading. I also just noticed this is the C/C++ forum and not java, but I imagine there are similar things to look for in eclipse.
Quote:
Ensure that you roboRIO is imaged correctly. If you connect up a laptop to the rio and go to roboRIO-3494-FRC.local you should be able to connect to the rio. If you can't, try using a USB cable and going to 172.22.11.2. If that doesn't work - I'd make sure you completed these steps properly:
http://wpilib.screenstepslive.com/s/...borio-firmware
http://wpilib.screenstepslive.com/s/...g-your-roborio
http://wpilib.screenstepslive.com/s/...ller-java-only
Open up eclipse and go to Window -> Preferences then go to Java -> Installed JREs. Make sure that under the name/location it says JDK and NOT JRE. If it does not have JDK, delete the current one, add a new standard VM. Go to C:\Program Files\Java\JDK1.XXX (it may be Program Files or Program Files (x86)
If that's correct then in the preferences window still go to WPILib Preferences and make sure your team number is there
If that's correct then right click on your project, select Properties, then go to the Java BUild Path and make sure that the wpilib, networktables, and jdk system library are all checked
If that's correct then I would do File -> New -> Project. Then select WPILib Robot java Development -> Example Robot Java Project then select the getting started sample project and just try to load that. If that works then for some reason something in your code is preventing it from loading.
|
__________________
Team 451 The Cat Attack, Student Alumni (2005)
Team 1646 Precision Guessworks, Mentor (2006-2008)
Team 2936 Gatorzillas, Mentor (2011-2014)
Team 5414 Pearadox, Mentor (2015-Present)
Last edited by ahartnet : 08-23-2016 at 06:50 PM.
Reason: adding help
|