NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Building the Project with JMF

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
userdude7



Joined: 02 May 2011
Posts: 5

PostPosted: Mon May 02, 2011 2:37 pm    Post subject: Building the Project with JMF Reply with 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?
Back to top
jyeary



Joined: 21 Oct 2008
Posts: 606
Location: Simpsonville, SC

PostPosted: Tue May 03, 2011 2:35 pm    Post subject: Re: Building the Project with JMF Reply with quote

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

PostPosted: Tue May 03, 2011 4:21 pm    Post subject: Reply with 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
emiddio-frontier
Posted via mailing list.





PostPosted: Tue May 03, 2011 8:36 pm    Post subject: [SPAM] Re: Building the Project with JMF Reply with quote

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

PostPosted: Wed May 04, 2011 12:34 am    Post subject: Reply with quote

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

PostPosted: Mon May 23, 2011 10:26 am    Post subject: Reply with quote

Hope theres someone who can help me with this.
Back to top
userdude7



Joined: 02 May 2011
Posts: 5

PostPosted: Mon Jun 06, 2011 8:55 am    Post subject: Reply with quote

anyone? still hoping for any help
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo