| View previous topic :: View next topic |
| Author |
Message |
userdude7
Joined: 02 May 2011 Posts: 5
|
Posted: Mon May 02, 2011 2:37 pm Post subject: Building the Project with JMF |
|
|
Im using Netbeans 7.0, and created a software the basically snapshots the user with the webcam connected via USB and I am using JMF (Java Media Framework).
Whenever I run the project (via F6), I successfully got it to run normally. However, when I build the project (via F11) and run the .jar file, it gets an error which is that it doesn't recognize the inserted webcam.
Any ideas? |
|
| Back to top |
|
 |
jyeary
Joined: 21 Oct 2008 Posts: 606 Location: Simpsonville, SC
|
Posted: Tue May 03, 2011 2:35 pm Post subject: Re: Building the Project with JMF |
|
|
Are the libraries included on your path? Normally, NB creates an executable jar. Along with that, it creates a lib directory containing the jars to run the application. Is this the case with your application?
On Mon, May 2, 2011 at 10:38 AM, userdude7 <address-removed ([email]address-removed[/email])> wrote:
| Quote: | Im using Netbeans 7.0, and created a software the basically snapshots the user with the webcam connected via USB and I am using JMF (Java Media Framework).
Whenever I run the project (via F6), I successfully got it to run normally. However, when I build the project (via F11) and run the .jar file, it gets an error which is that it doesn't recognize the inserted webcam.
Any ideas?
|
--
John Yeary
--
http://javaevangelist.blogspot.com
http://www.johnyeary.com
@jyeary
"Far better it is to dare mighty things, to win glorious triumphs, even though checkered by failure, than to take rank with those poor spirits who neither enjoy much nor suffer much, because they live in the gray twilight that knows not victory nor defeat."
-- Theodore Roosevelt |
|
| Back to top |
|
 |
userdude7
Joined: 02 May 2011 Posts: 5
|
Posted: Tue May 03, 2011 4:21 pm Post subject: |
|
|
| yes it creates the required .jar file in the lib folder, specifically jmf.jar. It just doesn't recognize the device connected to the computer via USB (vfw:Microsoft WDM Image Capture (Win32):0) |
|
| Back to top |
|
 |
emiddio-frontier Posted via mailing list.
|
Posted: Tue May 03, 2011 8:36 pm Post subject: [SPAM] Re: Building the Project with JMF |
|
|
works for me; had problems too in the beginning
the required 32bit dll files are required to be loaded by your jvm to see
the hardware
are you using the same jdk/jvm outside netbeans as inside?
jmf.properties file must be found by jmf -- it informs you app about jmv
devices -- and the information
in the file in not text -- it is java serialized data. -- can you app find
jmf.properties?
your app does not dynamically look for devices -- is uses the jmf registry
gary
----- Original Message -----
From: "userdude7" <address-removed>
To: <address-removed>
Sent: Tuesday, May 03, 2011 9:21 AM
Subject: [nbj2ee] Building the Project with JMF
| Quote: | yes it creates the required .jar file in the lib folder, specifically
jmf.jar. It just doesn't recognize the device connected to the computer
via USB (vfw:Microsoft WDM Image Capture (Win32):0)
|
|
|
| Back to top |
|
 |
userdude7
Joined: 02 May 2011 Posts: 5
|
Posted: Wed May 04, 2011 12:34 am Post subject: |
|
|
I think I'm using only one jdk (jdk-6u25) for outside and inside netbeans.
How do I find the jmf.properties? So do I need some other files to be with the same directory with the .jar file? Also, JMFRegistry is able to see the device at the "Capture Device Manager" tab. |
|
| Back to top |
|
 |
userdude7
Joined: 02 May 2011 Posts: 5
|
Posted: Mon May 23, 2011 10:26 am Post subject: |
|
|
| Hope theres someone who can help me with this. |
|
| Back to top |
|
 |
userdude7
Joined: 02 May 2011 Posts: 5
|
Posted: Mon Jun 06, 2011 8:55 am Post subject: |
|
|
| anyone? still hoping for any help |
|
| Back to top |
|
 |
|