Results 1 to 4 of 4
- 05-21-2012, 05:07 PM #1
Member
- Join Date
- May 2012
- Posts
- 1
- Rep Power
- 0
if i do double click the jar,its not working but its run in netbeans and cmd prompt
I am developing a small app that captures photos from the web cam.I developed this app using NetBeans 6.8 .App worked fine when i runned through NetBeans.But when executed outside NetBeans in the dist folder which contains the executable jar file of the app it couldn't detect the webcam.I placed the necessary libraries (jmf.jar) in the lib folder.Still the problem exists. Thanks in advance
- 05-21-2012, 05:56 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Re: if i do double click the jar,its not working but its run in netbeans and cmd prom
What error(s) are you getting, full exception text and stack trace, and show where in your code it is occurring.
Please do not ask for code as refusal often offends.
- 05-21-2012, 06:15 PM #3
Re: if i do double click the jar,its not working but its run in netbeans and cmd prom
kanagaraj, why did you copy and paste a question that was asked (and abandoned) last year on another forum?
JMF how to find the required DLL's - Stack Overflow
Also, cross posted
jar file is not working but if run in netbean means its working properly.. (Swing / AWT / SWT / JFace forum at JavaRanch)
dbWhy do they call it rush hour when nothing moves? - Robin Williams
- 05-22-2012, 01:20 PM #4
- Join Date
- Sep 2008
- Location
- Voorschoten, the Netherlands
- Posts
- 11,421
- Blog Entries
- 7
- Rep Power
- 17
Re: if i do double click the jar,its not working but its run in netbeans and cmd prom
Not all the necessary resources are in your .jar file or pointed to by your .jar file (through a manifest entry); a nice litmus test runs as follows: create your .jar file and move all other resources to your JRE/lib/ext directory; the resources will always be found; now remove the resource files from that directory oe by one and start running your .jar file after each removal; if it won't run anymore that latest removed resource belongs to your .jar file.
kind regards,
JosWhen people rob a bank they get a penalty; when banks rob people they get a bonus.
Similar Threads
-
Executing .class files on Windows with a double click or right click
By Norm in forum Forum LobbyReplies: 2Last Post: 06-22-2011, 01:19 PM -
running jar file by double click
By Himanshu23 in forum AWT / SwingReplies: 0Last Post: 11-11-2010, 08:24 AM -
Double click event
By Dipke in forum New To JavaReplies: 3Last Post: 10-22-2010, 11:39 AM -
Double click eevent on particular row
By selva.bics in forum AWT / SwingReplies: 3Last Post: 10-10-2009, 10:33 AM -
Run Jar file on double click
By dhaval.rajput.p in forum New To JavaReplies: 2Last Post: 07-24-2009, 05:44 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks