Results 1 to 11 of 11
  1. #1
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default how i can build exe file??

    hi
    i want to know how i can built exe file of my project , and i find prog. to convert from jar to exe but i didnt know how to use it .. i want any one to tell me how to creat exe file .
    thank you..
    Last edited by ahmed13; 02-05-2009 at 07:12 PM.

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    29

    Default

    If a question you have sounds like one that other's would likely have asked, odds are that it has been asked before. This one gets asked once a week if not more. Your best bet is to search this or other fora. The most common answer I'll tell you: It's to ask why you'd want to change a program that can run on most major OSs to one that will only run on one. Best of luck.

  3. #3
    Join Date
    Jan 2009
    Location
    Delhi
    Posts
    8
    Rep Power
    0

    Default

    I am just giving you hint for this simple problem . In Java u can easily make jar file that consists of various class files.With the help of .bat file u can run the jar file.

    Rest is upto you!!!!!!!!!

    Try it .......best of luck....

  4. #4
    angryboy's Avatar
    angryboy is offline Senior Member
    Join Date
    Jan 2009
    Posts
    742
    Rep Power
    10

    Default

    use jsmooth, the process is pretty straight forward, but you can read their tutorial on the website. only time i did this was to sent a java prog to gramma whose jar extension was taken over by 7zip.

    bat file is good too, never thought of it. but u get that cmd pop up everytime...
    Last edited by angryboy; 02-05-2009 at 08:38 PM.
    USE CODE TAGS--> [CODE]...[/CODE]
    Get NotePad++ (free)

  5. #5
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default

    Quote Originally Posted by kapilverma32 View Post
    I am just giving you hint for this simple problem . In Java u can easily make jar file that consists of various class files.With the help of .bat file u can run the jar file.

    Rest is upto you!!!!!!!!!

    Try it .......best of luck....
    thank you for your reply
    but i want to ask you . bat file run as exe file ? and how i can creat .bat file ..

  6. #6
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    If a question you have sounds like one that other's would likely have asked, odds are that it has been asked before. This one gets asked once a week if not more. Your best bet is to search this or other fora. The most common answer I'll tell you: It's to ask why you'd want to change a program that can run on most major OSs to one that will only run on one. Best of luck.
    yes i will reply to your answer most of people dont have java in there computer so i want to have exe file to run it on windows sys. ..

    thank you

  7. #7
    Join Date
    Jan 2009
    Location
    Delhi
    Posts
    8
    Rep Power
    0

    Default

    open the notepad and save as .bat extn , u need a training i suggest u......

    use below alongwith that:

    right click .bat file and type:

    javaw -jar urjarname.jar
    pause

  8. #8
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default

    Quote Originally Posted by kapilverma32 View Post
    open the notepad and save as .bat extn , u need a training i suggest u......

    use below alongwith that:

    right click .bat file and type:

    javaw -jar urjarname.jar
    pause
    we registered in this forums to Exchange of experience .. so i think that
    all member in this forum need training

    thank you ...

  9. #9
    Join Date
    Jan 2009
    Location
    Delhi
    Posts
    8
    Rep Power
    0

    Default

    this is for sure that one can easily judge ur experience the way or kind of silly q's u are following......

    hence proved...

    cme to professionalism...........
    nw ur problem is solved dear exp jr.?????????

  10. #10
    ahmed13 is offline Member
    Join Date
    Jan 2009
    Posts
    19
    Rep Power
    0

    Default

    Quote Originally Posted by kapilverma32 View Post
    this is for sure that one can easily judge ur experience the way or kind of silly q's u are following......

    hence proved...

    cme to professionalism...........
    nw ur problem is solved dear exp jr.?????????
    thank you for your repling

    when i creat bat file and write javaw -jar jarneme.jar
    and i open bat file the my jar file opened but i want 1 file only not bat file and jar ...
    my problem is very simple ...

    thank you again

  11. #11
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    10

    Default

    It sounds like you are wanting an executable jar file. To create that, you have to include a manifest with your 'jar' command that defines the class with 'main' in it.

    Suppose 'manifest' had contents:
    Main-class: MyMain

    and suppose your main class was called MyMain. Then to create an executable jar file:

    jar cmf manifest myExecutableJarFile.jar *.class

Similar Threads

  1. Replies: 0
    Last Post: 01-29-2009, 11:43 AM
  2. various stuffs to build GUI
    By Devi in forum AWT / Swing
    Replies: 1
    Last Post: 12-01-2008, 08:04 PM
  3. Replies: 0
    Last Post: 06-11-2008, 02:56 PM
  4. How to run/build the JSP file using Eclipse
    By cbklp in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 01-19-2008, 01:03 AM
  5. Teamwork 3.2.0 build 414
    By JavaBean in forum Java Software
    Replies: 0
    Last Post: 07-11-2007, 04:13 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
  •