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.



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

    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 *.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


    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. kardinal stick Says:
    February 8th, 2022 at 21:16

    … [Trackback]

    […] Read More on that Topic: […]

  4. slot999 Says:
    February 24th, 2022 at 04:16

    … [Trackback]

    […] Information to that Topic: […]

  5. สล็อตวอเลท Says:
    April 23rd, 2022 at 22:06

    … [Trackback]

    […] Read More here to that Topic: […]

  6. Garry\'s hacks Says:
    June 17th, 2022 at 19:27

    … [Trackback]

    […] Here you will find 84759 more Information to that Topic: […]

  7. CZ P-10 F 9MM 21 ROUND MAGAZINE Says:
    July 5th, 2022 at 02:32

    … [Trackback]

    […] Find More on that Topic: […]

  8. CZ P-10 F 9MM 21 ROUND MAGAZINE Says:
    July 5th, 2022 at 03:30

    … [Trackback]

    […] Read More on that Topic: […]

  9. sbo Says:
    August 30th, 2022 at 19:14

    … [Trackback]

    […] Information on that Topic: […]

  10. sbo Says:
    October 21st, 2022 at 01:23

    … [Trackback]

    […] Here you can find 25897 additional Information on that Topic: […]

  11. sbobet Says:
    November 7th, 2022 at 23:38

    … [Trackback]

    […] Info on that Topic: […]

  12. Says:
    November 14th, 2022 at 07:18

    … [Trackback]

    […] There you will find 45212 more Information on that Topic: […]

  13. ecommerce development companies Says:
    December 9th, 2022 at 10:51

    … [Trackback]

    […] Here you can find 37192 additional Info on that Topic: […]

  14. รับซื้อเศษเหล็ก Says:
    December 9th, 2022 at 18:58

    … [Trackback]

    […] Find More Info here to that Topic: […]