Ok, so we had the same problem today and this is what I’ve gotten so far:
- We configured the admin user on the roboRIO interface with computer A
- We flashed the roboRIO, installed the Java 8 VM and flashed the VRM and PCM with computer A
- I then attempted to upload a new code we had been working on with multiple classes onto the roboRIO with computer B
- The upload process failed due to the privileges error previously described on this thread
- I modified C:\Users[USER]\wpilib\java\current\ant\build.xml by replacing all “${username}” with the username previously selected during the config/flash process. I did the same with the “${password}” field
- I succesfully uploaded a sample tank drive robot code provided in the examples and managed to get all 3 green lights (comm, code, input) on the DS
- When trying to upload the previous code with multiple classes once more, I received the following error:
ERROR Unhandled exception instantiating robot com.team2576.Robot java.lang.ClassNotFoundException: com.team2576.Robot at [java.net.URLClassLoader$1.run(URLClassLoader.java:372), java.net.URLClassLoader$1.run(URLClassLoader.java:361), java.security.AccessController.doPrivileged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.java:360), java.lang.ClassLoader.loadClass(ClassLoader.java:424), sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:357), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
- I then re-uploaded the original example code and realized the build log included the following output with an error:
Buildfile: C:\Users\Lucas\FRC_Java\Tank Drive\build.xml
Trying to override old definition of task classloader
clean:
[delete] Deleting directory C:\Users\Lucas\FRC_Java\Tank Drive\build
[delete] Deleting directory C:\Users\Lucas\FRC_Java\Tank Drive\dist
compile:
[mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\build
[echo] [athena-compile] Compiling src with classpath=C:\Users\Lucas/wpilib/java/current/lib/WPILib.jar:C:\Users\Lucas/wpilib/java/current/lib/NetworkTables.jar to build
[javac] Compiling 1 source file to C:\Users\Lucas\FRC_Java\Tank Drive\build
jar:
[echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
[mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\dist
[mkdir] Created dir: C:\Users\Lucas\FRC_Java\Tank Drive\build\jars
[echo] [athena-jar] Copying jars from C:\Users\Lucas/wpilib/java/current/lib/WPILib.jar:C:\Users\Lucas/wpilib/java/current/lib/NetworkTables.jar to build/jars.
[copy] Copying 2 files to C:\Users\Lucas\FRC_Java\Tank Drive\build\jars
[jar] Building jar: C:\Users\Lucas\FRC_Java\Tank Drive\dist\FRCUserProgram.jar
get-target-ip:
[echo] Trying Target: roboRIO-2576.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/4485/m/13503/l/288822-installing-java-8-on-the-roborio-using-the-frc-roborio-java-installer-java-only
[sshexec] Connecting to roboRIO-2576.local:22
[sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
[echo] [athena-deploy] Copying code over.
[scp] Connecting to roboRIO-2576.local:22
[scp] done.
[sshexec] Connecting to roboRIO-2576.local:22
[sshexec] cmd : killall netconsole-host
[sshexec] killall: netconsole-host: no process killed
[sshexec] Remote command failed with exit status 1
[scp] Connecting to roboRIO-2576.local:22
[scp] done.
[scp] Connecting to roboRIO-2576.local:22
[scp] done.
[echo] [athena-deploy] Starting program.
[sshexec] Connecting to roboRIO-2576.local:22
[sshexec] cmd : . /etc/profile.d/natinst-path.sh; /usr/local/frc/bin/frcKillRobot.sh -t -r;
[sshexec] start-stop-daemon: warning: killing process 9451: No such process
BUILD SUCCESSFUL
Total time: 9 seconds
Error:
[sshexec] Remote command failed with exit status 1
Any ideas on why the code doesn’t deploy correctly for the multi class project?