![]() |
No Code in Driver Station!
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. |
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=SOMETHINGCode:
package=org.usfirst.frc.team3871.robot |
Re: No Code in Driver Station!
Everything is already correct in build.properties
|
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?
|
Re: No Code in Driver Station!
Are you sure your robot class is actually called "Robot" in the "org.usfirst.frc.team3871.robot" package?
|
Re: No Code in Driver Station!
Yes,I'm sure it's labeled Robot
|
Re: No Code in Driver Station!
Quote:
|
Re: No Code in Driver Station!
Yes it is
|
Re: No Code in Driver Station!
We cannot help you until you give us the code.
|
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.
|
Re: No Code in Driver Station!
Quote:
|
Re: No Code in Driver Station!
Robot.java:
Code:
package org.usfirst.frc.team3871.Trojans2015.robot;IO.java Code:
package org.usfirst.frc.team3871.Trojans2015.robot;RobotMap.java Code:
package org.usfirst.frc.team3871.Trojans2015.robot;Build Properties # Project specific information package=org.usfirst.frc.team3871.robot robot.class=${package}.Robot simula/worlds/Geation.world.file=/usr/share/frcsimrsBotDemo.world |
Re: No Code in Driver Station!
Quote:
(Also, for future reference, package name elements are usually lower-case: org.usfirst.frc.team3871.trojans2015.robot.) |
Re: No Code in Driver Station!
I fixed that. It still didn't work.
|
Re: No Code in Driver Station!
Quote:
|
| All times are GMT -5. The time now is 10:27. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi