Log in

View Full Version : Camera tracking code not working in our own program, but works in CircleTrackerDemo


TPNigl
31-01-2010, 15:13
Our team is able to get the tracking code to work when it is in the CircleTrackerDemo code, but when we put it in our own code along with the other stuff, it doesn't work and we get this error. Any ideas?

Uncaught exception in Thread.run():
[cRIO] on thread edu.wpi.first.wpilibj.templates.RobotTemplate - main
[cRIO] java.lang.IllegalArgumentException: MIDlet class specified, edu.wpi.first.wpilibj.templates.RobotTemplate, was not found
[cRIO] at java.lang.Throwable.<init>(88)
[cRIO] at java.lang.Throwable.<init>(102)
[cRIO] at java.lang.Exception.<init>(53)
[cRIO] at java.lang.RuntimeException.<init>(58)
[cRIO] at java.lang.IllegalArgumentException.<init>(54)
[cRIO] at com.sun.squawk.imp.MIDletMainWrapper.main(94)
[cRIO] in virtual method #95 of com.sun.squawk.Klass(bci=25)
[cRIO] at com.sun.squawk.Isolate.run(1554)
[cRIO] at java.lang.Thread.run(231)
[cRIO] in virtual method #47 of com.sun.squawk.VMThread(bci=42)
[cRIO] in static method #3 of com.sun.squawk.VM(bci=6)

Radical Pi
31-01-2010, 17:27
Could be any number of things. Would be nice if we could see the code you are using

TPNigl
31-01-2010, 19:35
Just figured out stuff. I actually put my code into the trackerdemo code and it worked fine. So now we're good. Thanks though!

synth3tk
31-01-2010, 19:40
Just figured out stuff. I actually put my code into the trackerdemo code and it worked fine. So now we're good. Thanks though!
This took a good whole day for us to figure out, too. I thought there was a way to import the same code into our own program, but I guess not. Anyway, good to know that you've found the answer!