Note that there are some explanatory texts on larger screens.

plurals
  1. POWebcam in java Errors
    primarykey
    data
    text
    <p>I am trying to use my cam in java app but i get some errors here is the my code. its simple someone tells me whats wrong with my code:</p> <pre><code>import java.util.Vector; import javax.media.CaptureDeviceInfo; import javax.media.CaptureDeviceManager; import javax.media.Manager; import javax.media.MediaLocator; import javax.media.Player; import javax.swing.JFrame; public class Main extends JFrame { public Main(){ super("Jcam"); try { Vector v = CaptureDeviceManager.getDeviceList(null); CaptureDeviceInfo cam = null; for(int i=0;i&lt;v.size();i++) { CaptureDeviceInfo dev = (CaptureDeviceInfo) v.elementAt(i); if(dev.getName().startsWith("vfw")) { cam = dev; break; } System.out.println(dev.getName()); } if (cam == null){ System.exit(0); } MediaLocator ml = cam.getLocator(); Player p = Manager.createRealizedPlayer(ml); add(p.getVisualComponent()); p.start(); } catch (Exception e) { } setSize(700, 700); setVisible(true); } /** * @param args */ public static void main(String[] args) { new Main(); } </code></pre> <p>and here is the log </p> <pre><code>Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206) at com.sun.media.protocol.vfw.VFWCapture.&lt;clinit&gt;(VFWCapture.java:19) at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:241) at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763) at java.lang.Thread.run(Unknown Source) </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload