Compdigitec Labs

« | Home | »

Distributing small Java applications (i.e. convert to EXE)

By admin | April 30, 2011

Many times it can be said that it is not very friendly getting a .class file to run. Here is a better way to get them to run – it involves first converting it to an executable .jar and then optionally converting to an executable file on Windows.

Prerequisites:

Procedure:

If you found this article helpful or interesting, please help Compdigitec spread the word. Don’t forget to subscribe to Compdigitec Labs for more useful and interesting articles!

Topics: Linux | 14 Comments »

14 Responses to “Distributing small Java applications (i.e. convert to EXE)”

  1. tom Says:
    October 9th, 2012 at 02:04

    hey,
    that is clearly explained.But i have a problem
    hope you can help.
    when i run ” java -jar *.jar”
    it says “no main manifest attribute, in *.jar”

    and its a standalone applet program i have converted that to application by adding main method in another class and calling it..

    and to create jar
    here s command i used
    “jar -cvfm manifest.mf.txt *.class *.class *.txt”

    i don’t know what is the prob..
    if you know d solution or if you know the cause of this problem mail me.!!

  2. admin Says:
    October 13th, 2012 at 18:09

    @tom:

    I think that the jar cvfm command has to be run like so:

    jar cvfm .jar .mf .class

    Also if you’re using Windows, turn off the hiding of file extensions in Explorer. The manifest file has to actually end in .mf, not .mf.txt.

  3. 8xbet คืออะไร Says:
    August 1st, 2025 at 00:25

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  4. สบาย168 Says:
    August 3rd, 2025 at 04:36

    … [Trackback]

    […] Read More Information here to that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  5. กระเช้า Says:
    August 4th, 2025 at 21:59

    … [Trackback]

    […] Info on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  6. hiso23 Says:
    August 6th, 2025 at 22:57

    … [Trackback]

    […] Find More Information here on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  7. โคมไฟ Says:
    August 28th, 2025 at 21:41

    … [Trackback]

    […] Find More on to that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  8. mk8 Says:
    August 29th, 2025 at 19:36

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  9. พรมปูพื้นรถยนต์ Says:
    September 12th, 2025 at 01:04

    … [Trackback]

    […] Read More on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  10. https://beautyfiles.kz Says:
    September 28th, 2025 at 22:44

    … [Trackback]

    […] Find More here to that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  11. Gold Lotto Says:
    October 1st, 2025 at 09:52

    … [Trackback]

    […] Here you will find 9508 more Info on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  12. เว็บดูหนังออนไลน์ฟรี 24 ชั่วโมง Says:
    October 2nd, 2025 at 23:12

    … [Trackback]

    […] Find More Info here on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  13. ufa118 Says:
    October 9th, 2025 at 02:25

    … [Trackback]

    […] Find More Info here on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

  14. essentials Says:
    October 27th, 2025 at 22:05

    … [Trackback]

    […] There you can find 33959 additional Information on that Topic: compdigitec.com/labs/2011/04/30/distributing-small-java-applications/ […]

Comments