Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   No Robot Code - Driver Station Error Code (http://www.chiefdelphi.com/forums/showthread.php?t=133622)

TeamMagicSmoke 28-01-2015 17:26

No Robot Code - Driver Station Error Code
 
I am the programmer from Team 5259 and we have spent the past few days completely stumped by and error code on the driver station. I have searched around and i cant seem to find what is causing the error. I tried uninstalling and re-installing everything. I even tried somethings that I found throughout the forum but I can't seem to find the exact error that we are experiencing.

Here is error code:

ERROR Unhandled exception instantiating robot org.usfirst.frc.team5259.robot.Robot java.lang.ClassNotFoundException: org.usfirst.frc.team5259.robot.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.j ava:360), java.lang.ClassLoader.loadClass(ClassLoader.java:4 24), sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:3 57), java.lang.Class.forName0(Native Method), java.lang.Class.forName(Class.java:259), edu.wpi.first.wpilibj.RobotBase.main(RobotBase.jav a:197)]

thatprogrammer 28-01-2015 18:30

Re: No Robot Code - Driver Station Error Code
 
Is your RSL plugged in? We had a similar issue, and plugging it in fixed it.

Joey1939 28-01-2015 20:08

Re: No Robot Code - Driver Station Error Code
 
Quote:

Originally Posted by thatprogrammer (Post 1435364)
Is your RSL plugged in? We had a similar issue, and plugging it in fixed it.

This wouldn't fix any programming problem.

It appears that the roboRIO is attempting to load your main robot class but can't find it. Make sure that in your build.properties, package equals the the correct class to load. This happens when you change the name of your robot's main class because it doesn't know where to find it any more.

TeamMagicSmoke 29-01-2015 07:58

Re: No Robot Code - Driver Station Error Code
 
Is this correct, this is what I found in the build.properties file:

# Project specific information
package=org.usfirst.frc.team5259.robot
robot.class=${package}.Robot
simulation.world.file=/usr/share/frcsim/worlds/GearsBotDemo.world

I have been messing with the code for a while trying different things but i can not find the problem.
I tried deleting the program and re-writing it but I am still getting the same error

TeamMagicSmoke 30-01-2015 15:33

Re: No Robot Code - Driver Station Error Code
 
Thank you so much it took me a while but I found that it needed to be ".frc5259." not "frc.team5259".

Speckles04 03-02-2015 21:46

Re: No Robot Code - Driver Station Error Code
 
Actually, if none of these work, I found out tonight that there was a really dumb error. It was that I had instantiated a command in the robot class, which is made for only instantiating subsystems. Make sure that that is not your issue.:rolleyes:


All times are GMT -5. The time now is 11:33.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi