Results 1 to 4 of 4
Like Tree1Likes
  • 1 Post By JosAH

Thread: if i do double click the jar,its not working but its run in netbeans and cmd prompt

  1. #1
    kanagaraj is offline Member
    Join Date
    May 2012
    Posts
    1
    Rep Power
    0

    Default 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

  2. #2
    Tolls is online now Moderator
    Join Date
    Apr 2009
    Posts
    12,040
    Rep Power
    20

    Default 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.

    ** This space for rent **

  3. #3
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,302
    Rep Power
    20

    Default 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)

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  4. #4
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,563
    Blog Entries
    7
    Rep Power
    21

    Default 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,

    Jos
    Norm likes this.
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Replies: 2
    Last Post: 06-22-2011, 01:19 PM
  2. running jar file by double click
    By Himanshu23 in forum AWT / Swing
    Replies: 0
    Last Post: 11-11-2010, 08:24 AM
  3. Double click event
    By Dipke in forum New To Java
    Replies: 3
    Last Post: 10-22-2010, 11:39 AM
  4. Double click eevent on particular row
    By selva.bics in forum AWT / Swing
    Replies: 3
    Last Post: 10-10-2009, 10:33 AM
  5. Run Jar file on double click
    By dhaval.rajput.p in forum New To Java
    Replies: 2
    Last Post: 07-24-2009, 05:44 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
  •