Results 1 to 2 of 2
  1. #1
    WACman is offline Member
    Join Date
    Nov 2010
    Posts
    7
    Rep Power
    0

    Default JMF works fine with javac BUT same code has problems with NetBeans 6.9.1

    This question is regarding both Java Media Framework and Netbeans
    I am new to NetBeans.


    Vector list = CaptureDeviceManager.getDeviceList ( null );
    //with javac on cmd this works fine and the list has got plenty of values
    //when running on netbeans its empty


    String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
    di = CaptureDeviceManager.getDevice(str2);
    //with javac everything is again fine
    //with netbeans nullPointerException


    I am doing a project on lipreading and I want to use NetBeans to code it. Can someone tell me what to do to NetBeans to make it work with JMF and access my webcam.

    Thanks you
    :)

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,006
    Rep Power
    20

    Default

    I take it you mean "java" and not "javac". The former is used to run programs, the latter is the compiler.

    Is your command line call simply "java <main class name here>"?

Similar Threads

  1. Javac Problems
    By franzwarning in forum New To Java
    Replies: 4
    Last Post: 10-28-2010, 05:25 AM
  2. Problems with javac
    By gkoef in forum New To Java
    Replies: 14
    Last Post: 09-07-2010, 10:17 AM
  3. Replies: 3
    Last Post: 04-15-2010, 02:41 AM
  4. Replies: 0
    Last Post: 10-05-2009, 11:25 PM
  5. Replies: 2
    Last Post: 03-16-2009, 07:52 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •