Results 1 to 2 of 2
  1. #1
    renu is offline Senior Member
    Join Date
    May 2010
    Posts
    119
    Rep Power
    0

    Question i created a jar file.but when i double click it doesnot work

    Hi


    I created a jar file from eclipse IDE and when i double click it doesnot work.

    I had to create a .bat file , with the command
    java -jar filename.jar

    and when i click on the .bat file , it works.

    what might be the reason that when i click on the .jar file , it is not running

    Thanks in advance .

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    11

    Default

    the file association for .jar files is not set up to have Java as the application to run a .jar file ?

Similar Threads

  1. Double click event
    By Dipke in forum New To Java
    Replies: 3
    Last Post: 10-22-2010, 12:39 PM
  2. Double click eevent on particular row
    By selva.bics in forum AWT / Swing
    Replies: 3
    Last Post: 10-10-2009, 11:33 AM
  3. Run Jar file on double click
    By dhaval.rajput.p in forum New To Java
    Replies: 2
    Last Post: 07-24-2009, 06:44 PM
  4. How to detect double click with a JFrame
    By Jary316 in forum New To Java
    Replies: 3
    Last Post: 01-05-2009, 09:39 PM
  5. Double click radio button
    By mandragora in forum AWT / Swing
    Replies: 11
    Last Post: 11-10-2008, 12:06 PM

Posting Permissions

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