|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
2016 Java code not deploying
I have a demonstration tonight for STEM and the robot code will not deploy. Im using old 2015 code that I ported over to 2016 (all i had to do was change gyro to analoggyro) but it simply will not work. I have installed the update suite and updated the Eclipse plugins. Here is the output file
Code:
Buildfile: C:\Users\FuriousFalcons\workspace\Judy\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\FuriousFalcons\workspace\Judy\build
[delete] Deleting directory C:\Users\FuriousFalcons\workspace\Judy\dist
compile:
[mkdir] Created dir: C:\Users\FuriousFalcons\workspace\Judy\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\FuriousFalcons/wpilib/java/current/lib/WPILib.jar:C:\Users\FuriousFalcons/wpilib/java/current/lib/NetworkTables.jar: to build
[javac] Compiling 21 source files to C:\Users\FuriousFalcons\workspace\Judy\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\FuriousFalcons\workspace\Judy\dist
[mkdir] Created dir: C:\Users\FuriousFalcons\workspace\Judy\build\jars
[echo] [athena-jar] Copying jars from C:\Users\FuriousFalcons/wpilib/java/current/lib/WPILib.jar:C:\Users\FuriousFalcons/wpilib/java/current/lib/NetworkTables.jar: to build/jars.
[copy] Copying 2 files to C:\Users\FuriousFalcons\workspace\Judy\build\jars
[jar] Building jar: C:\Users\FuriousFalcons\workspace\Judy\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-4328-FRC.local
[echo] roboRIO found via mDNS
dependencies:
[echo] roboRIO image version validated
[echo] Checking for JRE. If this fails install the JRE using these instructions: https://wpilib.screenstepslive.com/s...ller-java-only
[sshexec] Connecting to roboRIO-4328-FRC.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-4328-FRC.local:22
[scp] done.
[sshexec] Connecting to roboRIO-4328-FRC.local:22
[sshexec] cmd : killall -q netconsole-host || :
[scp] Connecting to roboRIO-4328-FRC.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-4328-FRC.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] killall: lvrt: no process killed
[sshexec] Remote command failed with exit status 1
[sshexec] Connecting to roboRIO-4328-FRC.local:22
[sshexec] cmd : sync
BUILD SUCCESSFUL
Total time: 9 seconds
Last edited by origamitaco : 11-01-2016 at 15:17. Reason: code tags |
|
#2
|
||||
|
||||
|
Re: 2016 Java code not deploying
Maybe try setting the IPv4 settings to 10.XX.XX.5 where XXXX is your team's number. Like 10.43.28.5 for your team.
|
|
#3
|
|||
|
|||
|
Re: 2016 Java code not deploying
Tried that. Same error. Driver station communicates with both scenarios.
|
|
#4
|
|||
|
|||
|
Re: 2016 Java code not deploying
I'm looking to see if i can reflash the 2015 image and backport my code again. I can't find the image though.
|
|
#5
|
||||
|
||||
|
Re: 2016 Java code not deploying
I don't know if this will help or not but...
https://wpilib.screenstepslive.com/s...ller-java-only |
|
#6
|
||||
|
||||
|
Re: 2016 Java code not deploying
Try deleting the bin, build, and dist directories for the project and then re-deploy.
|
|
#7
|
|||
|
|||
|
Re: 2016 Java code not deploying
Reinstalled java and deleted those folders. Didn't work either. Any other suggestions?
|
|
#8
|
|||
|
|||
|
Frickin just realized I've got the wrong version of Java on the RIO. Used HardFP instead of SoftFP. Not near the robot right now, just browsing the instructions when I saw that. Will try tomorrow and report status
|
|
#9
|
|||
|
|||
|
Re: 2016 Java code not deploying
If that doesn't do anything, try enabling Warnings + Prints using the little gear in the DS Messages window or use RioLog in Eclipse. They may tell you your code is crashing and give you a clue why.
|
|
#10
|
|||
|
|||
|
I'm on my way to try what I posted previously but I have enabled those before and they kept giving me bad ping and that its switched to driver station mode, it would happen 4 times and stop. I'm assuming that was it crashing and starting because this year's image restarts on crash 4 times and then quits so that your not isn't dead on field from one lousy command.
|
|
#11
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|