Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Camera tracking code not working in our own program, but works in CircleTrackerDemo (http://www.chiefdelphi.com/forums/showthread.php?t=81601)

TPNigl 31-01-2010 15:13

Camera tracking code not working in our own program, but works in CircleTrackerDemo
 
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?

Code:

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

Re: Camera tracking code not working in our own program, but works in CircleTrackerDe
 
Could be any number of things. Would be nice if we could see the code you are using

TPNigl 31-01-2010 19:35

Re: Camera tracking code not working in our own program, but works in CircleTrackerDe
 
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

Re: Camera tracking code not working in our own program, but works in CircleTrackerDe
 
Quote:

Originally Posted by TPNigl (Post 910830)
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!


All times are GMT -5. The time now is 02:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi