Results 1 to 4 of 4
  1. #1
    katakali is offline Member
    Join Date
    Jun 2012
    Rep Power

    Default Need a help on double-click jar file

    Hi All,

    I'm newbie to JAVA and I've created a application in JAVA.

    I like to create a jar file which might be executable by double-click in windows environment.

    Could you please guide me how do i create a setup / installation which would bundle JRE installation as well my JAR file so that after installation my JAR file run out of the box.

  2. #2
    Junky's Avatar
    Junky is offline Grand Poobah
    Join Date
    Jan 2011
    Rep Power

    Default Re: Need a help on double-click jar file

    This will require 2 steps.

    First you need to place you app in a jar file. Google should provide links to some good jar tutorials.

    Next you will need to create an installer that will package your app and a JRE (if target machine needs it). There are products out there, don't know if any are free.

  3. #3
    wsaryada is offline Senior Member
    Join Date
    Jun 2007
    Bali, Indonesia
    Rep Power

    Default Re: Need a help on double-click jar file

    Here is a tutorial to make an executable jar file: How to make an executable JAR file.

  4. #4
    S.Mason is offline Member
    Join Date
    Jul 2012
    Rep Power

    Default Re: Need a help on double-click jar file

    for the JRE you might as well tell your users to quickly check this link Verify Java Version to see if they have java or not. If the user doesn't the little program that checks your system will recommend the latest JRE for download.
    It's an easier way out since sometimes your program could be a mere 50KB while the JRE is like 180KB.

    that's actually for the chrome install, the actual JRE is more like 20MB depending on whether you have linux, windows, or whatever and whether if its 32 bit or 64 bit. It's a lot easier to just tell the user to download from that link then to have to make a bunch of installers for specific OSs.
    Last edited by S.Mason; 07-07-2012 at 11:36 PM.

Similar Threads

  1. Replies: 2
    Last Post: 06-22-2011, 02:19 PM
  2. Trying to make a jar file double click/run from desktop
    By silverglade in forum New To Java
    Replies: 6
    Last Post: 05-13-2011, 05:32 AM
  3. running jar file by double click
    By Himanshu23 in forum AWT / Swing
    Replies: 0
    Last Post: 11-11-2010, 09:24 AM
  4. Replies: 1
    Last Post: 10-30-2010, 07:27 PM
  5. 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

Posting Permissions

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