|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Code not uploading
The team I was helping out over the summer ran into this same runtime exception. I think this is the cRIO equivalent of a link error. This issue was documented on CD here. For us, the issue was a misconfiguration in the Manifest file (specifically, the MIDIlet-1 "main" path). The "edu.wpi.first.wpilibj.templates.RobotTemplate " in the file should match the package name and class name you are using to hold your top-level robot code.
Anyone else feel free to chime in with suggestions or corrections. |
|
#2
|
|||
|
|||
|
Re: Code not uploading
Aaron is correct. It appears your problem is that your manifest file can not find your main robot class.
Without seeing your code, I can provide the literal fix but it is easy enough for you to do it on your own. Open Resources/META-INF/manifest.mf Make sure this line: Code:
MIDlet-1: Robot, , org.team2168.Robot This should fix your issue. The issue is that the JVM can not find the main method of the program, which is why it is crashing with the error you see. If you still need further help, post the contents of your manifest.mf file and your main robot code. Regards, Kevin |
|
#3
|
||||
|
||||
|
Re: Code not uploading
As others have said, your manifest file has the wrong name for your main class. This is most likely because you renamed your main robot class (often called RobotTemplate.java, or the one that extends IterativeRobot or SimpleRobot). If you remember the original name, you can just change the name of the class back to what it used to be, and it'll work again.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|