Hello, I am a programmer for team 4198 .
Yesterday I was playing around with some code, then all of a sudden I had deployed it and started getting this error message on the dashboard
Could not instantiate robot edu.wpi.first.hal.CANAPIJNI
I reinstalled the 2019 Update suite
I reinstalled the firmware on the rio
I reinstalled the VS Code and wpi libraries
I am all out of ideas,
Any help is appreciated
Thanks,
Eric
There should be more to that error. It should be posting a full message with a stacktrace of fully where the error occured.
The other thing is post your main.java file, I would be interested if something got messed up there.
Here is the error code, none of our files have over 100 lines so I dont know where it eroding out
Theres still not enough to that message. Can you get an entire screen, from the red Could not instansiate robot message to the Robots should not quit message.
I’ve been able to reproduce this issue if I do not have any SPARK MAX devices plugged into the CAN bus, or if some of the CAN wires are not connected correctly.
Can you check that your entire CAN bus is wired correctly? The CAN connections should start from the roboRIO, daisy chain through any SPARK MAXs and other devices, and end at the PDP. If it is connected correctly you should have two green LEDs on the PDP.
Hello, I am a programmer for team 4198 .
Yesterday I was playing around with some code, then all of a sudden I had deployed it and started getting this error message on the dashboard
Could not instantiate robot edu.wpi.first.hal.CANAPIJNI
I reinstalled the 2019 Update suite
I reinstalled the firmware on the rio
I reinstalled the VS Code and wpi libraries
I am all out of ideas,
Any help is appreciated
Thanks,
Eric
OP, the thing that will be useful here is the full stack trace of where the error occurred at. We can part of it on the top of your screen, but not the whole thing.
Indeed, but your code is using other files (for example, CAN Spark Max classes) which do.