|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
I run the code perfectly in Eclipse. There are no errors or warning in the code. When I run the code, the buildpath says "Remote command failed with exit status 1". The code still builds successfully even with this error. When I get to the Driver Station, I have no Robot Code. I receive the following error:
ERROR Unhandled exception instantiating robot org.usfirst.frc.team3871.robot.Robotjava.lang.Clas sNotFoundException: org.usfirst.frc.team3871.robot.Robot at [java.net.URL.ClassLoader$1.run(URLClassLoader.java :372), java.net.URL.ClassLoader$1.run(URLClassLoader.java :361), java.security.AccessController.doPriveleged(Native Method), java.net.URLClassLoader.findClass(URLClassLoader.j ava:360),java.lang.ClassLoader.loadClass(ClassLoad er.java:424), sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:308), java.lang.ClassLoader.loadClass(ClassLoader.java:3 57), java.lang.Class.forName0(NativeMethod), java.lang.forName(Class.java:259), edu.wpi.first.wpilibi.RobotBase.main(RobotBase.jav a:197)] I have tried renaming the packages, I have tried scanning the code, and I even fixed an issue in the build path. |
|
#2
|
||||
|
||||
|
Re: No Code in Driver Station!
Our team had the same error when our package structure was named incorrectly. If it's not currently the case, replace the lines
Code:
package=SOMETHING robot.class=SOMETHING Code:
package=org.usfirst.frc.team3871.robot
robot.class=${package}.Robot
|
|
#3
|
||||
|
||||
|
Re: No Code in Driver Station!
Everything is already correct in build.properties
|
|
#4
|
||||
|
||||
|
Re: No Code in Driver Station!
The best thing to do is start with a very barebones version of code. Make sure that works. Then, add each part to your code in and test it after each addition. Otherwise, could you post some code so we can help you?
|
|
#5
|
|||
|
|||
|
Re: No Code in Driver Station!
Are you sure your robot class is actually called "Robot" in the "org.usfirst.frc.team3871.robot" package?
|
|
#6
|
||||
|
||||
|
Re: No Code in Driver Station!
Yes,I'm sure it's labeled Robot
|
|
#7
|
|||
|
|||
|
Re: No Code in Driver Station!
And the package is "org.usfirst.frc.team3871.robot"? Sorry for pestering, but that is usually the cause of this problem.
|
|
#8
|
||||
|
||||
|
Re: No Code in Driver Station!
Yes it is
|
|
#9
|
||||
|
||||
|
Re: No Code in Driver Station!
We cannot help you until you give us the code.
|
|
#10
|
||||
|
||||
|
Re: No Code in Driver Station!
IO? Robot? RobotMap? Build? Subsystems? Commands? There are no errors within the code itself. None that are marked, at least.
Last edited by BrighidKHeh : 16-02-2015 at 23:32. |
|
#11
|
||||
|
||||
|
Re: No Code in Driver Station!
I have seen that error a few times now. It is always a code error. For a while, we were getting that error because our ultrasonics weren't working correctly.
|
|
#12
|
||||
|
||||
|
Re: No Code in Driver Station!
Did you try this yet?
|
|
#13
|
||||
|
||||
|
Re: No Code in Driver Station!
Which issue did you fix? The robot project won't work right if you rename classes, change packages, or mess with the build path.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|