In the emulator it runs properly.
But, when I put my jar file in LG KP500 and press on the camera button it throws an exception
javax.microedition.media.MediaException: There is no matching DataSource.locator:capture://video
Now, I inserted the jar file in nokia 6500. This time it shows the camera when camera button is pressed. But, when I press on capture button it throws a different exception
javax.microedition.media.MediaException: only capture://image..
for taking photo snapshots, Nokia 6500 uses locator capture://image instead of capture://video. So accordingly one needs to change this
Regarding the LG device, based on the description it seems that that device also has got same kind issue with locator. In case you cannot receive more information on how this could be resolve on these discussion boards forums, I'd like to suggest you to ask about this on LG's own developer discussion forums.