Results 1 to 3 of 3
  1. #1
    sarwar1234 is offline Member
    Join Date
    Sep 2010
    Posts
    56
    Rep Power
    0

    Default create windows executable using executable jar file

    Hello,

    I have built a simple java project in Eclipse.....

    The project uses: JRE system libraray = jdk 1.6.0_21
    Three external libraries jars
    A resource folder that contains images etc.

    I have created an executable jar file packed with the external libraries and it works well..... the only thing is I have to put the resource folder on the same place where the exe jar is.... and then it works fine....

    Is there any free software available that can convert the exeutable jar into a simple exe for windows so that user dont have to worry about the java installation on their pc... ???

    I dont think that jdk 1.6.0 is necessary and the program uses simple methods and can run on any jdk, I guess....

    Many Thanks...

    Regards.

  2. #2
    doWhile is offline Moderator
    Join Date
    Jul 2010
    Location
    California
    Posts
    1,642
    Rep Power
    7

    Default

    I'm not sure I follow... a runnable jar by default uses the computer's JRE, and is double clickable, so I'm not sure I understand where an exe would help.
    (FWIW, the resource folder can be bundled with the jar and you can retrieve resources from said jar in the program)

  3. #3
    quad64bit's Avatar
    quad64bit is offline Moderator
    Join Date
    Jul 2009
    Location
    VA
    Posts
    1,323
    Rep Power
    6

    Default

    If it existed, it might also be able to convert water into electricity and make toast. You can't simply 'convert' one app into another. Secondly, it is possible to package your resources into the jar file, either on export or after the fact. Make sure eclipse knows about the resources folder, and that it is included in the build when you export.

    Finally, making a java app into a windows app defeats the whole point of java. Imagine if there was a spoken language anyone in the world could understand if they carried a small black box with them. And now you have composed a speech in this magical language, but want to convert it to greek so people don't need to use a little black box (but also rendering the speech useless to anyone that doesn't speak greek). Why did you write the speech in the magic language to begin with?
    Last edited by quad64bit; 02-07-2011 at 08:30 PM. Reason: typo

Similar Threads

  1. Replies: 0
    Last Post: 01-25-2011, 05:37 AM
  2. How to create an executable jar file?
    By Jonatan10 in forum New To Java
    Replies: 7
    Last Post: 12-23-2010, 03:42 PM
  3. Create Executable Jar file
    By sarwar1234 in forum New To Java
    Replies: 11
    Last Post: 10-28-2010, 12:26 PM
  4. Create Executable Jar file
    By sarwar1234 in forum New To Java
    Replies: 3
    Last Post: 09-27-2010, 05:10 PM
  5. How to create java executable file through CMD
    By Riaz Ali in forum New To Java
    Replies: 4
    Last Post: 08-03-2010, 08:20 AM

Posting Permissions

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