View Single Post
  #6   Spotlight this post!  
Unread 29-01-2015, 11:38
LFRobotics's Avatar
LFRobotics LFRobotics is offline
Registered User
FRC #4623
 
Join Date: Jan 2014
Location: Little Falls, MN
Posts: 95
LFRobotics is on a distinguished road
Re: Main Robot Code NOT Working

Okay I changed all that.

Here's the updated code: https://github.com/LFRobotics/Robot2015

But when I upload it the DriverStation puts out an error and says the robot has no code.

Eclipse Build Output:

Code:
Buildfile: C:\Users\Kristen\Documents\GitHub\Robot2015\build.xml
Trying to override old definition of task classloader
clean:
   [delete] Deleting directory C:\Users\Kristen\Documents\GitHub\Robot2015\build
   [delete] Deleting directory C:\Users\Kristen\Documents\GitHub\Robot2015\dist
compile:
    [mkdir] Created dir: C:\Users\Kristen\Documents\GitHub\Robot2015\build
     [echo] [athena-compile] Compiling src with classpath=C:\Users\Kristen/wpilib/java/current/lib/WPILib.jar:C:\Users\Kristen/wpilib/java/current/lib/NetworkTables.jar to build
    [javac] Compiling 12 source files to C:\Users\Kristen\Documents\GitHub\Robot2015\build
jar:
     [echo] [athena-jar] Making jar dist/FRCUserProgram.jar.
    [mkdir] Created dir: C:\Users\Kristen\Documents\GitHub\Robot2015\dist
    [mkdir] Created dir: C:\Users\Kristen\Documents\GitHub\Robot2015\build\jars
     [echo] [athena-jar] Copying jars from C:\Users\Kristen/wpilib/java/current/lib/WPILib.jar:C:\Users\Kristen/wpilib/java/current/lib/NetworkTables.jar to build/jars.
     [copy] Copying 2 files to C:\Users\Kristen\Documents\GitHub\Robot2015\build\jars
      [jar] Building jar: C:\Users\Kristen\Documents\GitHub\Robot2015\dist\FRCUserProgram.jar
get-target-ip:
     [echo] Trying Target: roboRIO-4623.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-4623.local:22
  [sshexec] cmd : test -d /usr/local/frc/JRE
deploy:
     [echo] [athena-deploy] Copying code over.
      [scp] Connecting to roboRIO-4623.local:22
      [scp] done.
      [scp] Connecting to roboRIO-4623.local:22
      [scp] done.
     [echo] [athena-deploy] Starting program.
  [sshexec] Connecting to roboRIO-4623.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 5656: No such process
BUILD SUCCESSFUL
Total time: 11 seconds
Driver Station Error:

Code:
ERROR Unhandled exception instantiating robot org.usfirst.frc.team4623.robot.Robot java.lang.ExceptionInInitializerError at [java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.java:197)]
Reply With Quote