How can I convert my Java program to an .exe file? [closed] The Next CEO of Stack OverflowHow do I create executable Java program?How do I create an .exe for a Java program?Creating exe for my java Application in eclipse?How to generate executable of java project in eclipseHow can I make an exe in NetBeans?Best free tool to build an exe from Java code?How to create native binaries for your Java app?How to create an executable file in java?how to convert exe file to .jar file?Can I run a .jar file without JDK?Is Java “pass-by-reference” or “pass-by-value”?Create ArrayList from arrayHow do I “decompile” Java class files?How do I read / convert an InputStream into a String in Java?How to get an enum value from a string value in Java?How to avoid Java code in JSP files?How to split a string in JavaConverting 'ArrayList<String> to 'String[]' in JavaHow do I convert a String to an int in Java?Creating a memory leak with Java

Could a dragon use its wings to swim?

What difference does it make matching a word with/without a trailing whitespace?

Simplify trigonometric expression using trigonometric identities

Why was Sir Cadogan fired?

What did the word "leisure" mean in late 18th Century usage?

Shortening a title without changing its meaning

What happens if you break a law in another country outside of that country?

Is it possible to create a QR code using text?

Salesforce opportunity stages

Why does freezing point matter when picking cooler ice packs?

Ising model simulation

A hang glider, sudden unexpected lift to 25,000 feet altitude, what could do this?

How do I secure a TV wall mount?

Is it correct to say moon starry nights?

Strange use of "whether ... than ..." in official text

Find the majority element, which appears more than half the time

Direct Implications Between USA and UK in Event of No-Deal Brexit

Create custom note boxes

Does the Idaho Potato Commission associate potato skins with healthy eating?

My boss doesn't want me to have a side project

Is it possible to make a 9x9 table fit within the default margins?

Can a PhD from a non-TU9 German university become a professor in a TU9 university?

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

Free fall ellipse or parabola?



How can I convert my Java program to an .exe file? [closed]



The Next CEO of Stack OverflowHow do I create executable Java program?How do I create an .exe for a Java program?Creating exe for my java Application in eclipse?How to generate executable of java project in eclipseHow can I make an exe in NetBeans?Best free tool to build an exe from Java code?How to create native binaries for your Java app?How to create an executable file in java?how to convert exe file to .jar file?Can I run a .jar file without JDK?Is Java “pass-by-reference” or “pass-by-value”?Create ArrayList from arrayHow do I “decompile” Java class files?How do I read / convert an InputStream into a String in Java?How to get an enum value from a string value in Java?How to avoid Java code in JSP files?How to split a string in JavaConverting 'ArrayList<String> to 'String[]' in JavaHow do I convert a String to an int in Java?Creating a memory leak with Java










469















If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?



I also need an installer for my program.










share|improve this question















closed as off-topic by Bill the Lizard Oct 7 '13 at 1:36


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Bill the Lizard
If this question can be reworded to fit the rules in the help center, please edit the question.
















  • simple hack for applets: write a C code with main and a call to function "system" like system("appletviewer java_src_file");

    – Madhusoodan P
    Oct 11 '16 at 4:09











  • Will the .exe works in windows system with no JRE ?

    – Arpit Agarwal
    Jan 2 '17 at 23:52











  • Just to be complete (did not try it myself because we needed exe wrapper, not installer): Installer packages can also be created using javapackager (see docs.oracle.com/javase/8/docs/technotes/guides/deploy/…). To create EXE or MSI installer, additionally Inno Setup or WiX need to be downloaded and installed.

    – anre
    Mar 17 '17 at 15:32











  • May be NSIS also helps; nsis.sourceforge.net/Java_Launcher

    – baris.aydinoz
    May 6 '18 at 7:40















469















If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?



I also need an installer for my program.










share|improve this question















closed as off-topic by Bill the Lizard Oct 7 '13 at 1:36


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Bill the Lizard
If this question can be reworded to fit the rules in the help center, please edit the question.
















  • simple hack for applets: write a C code with main and a call to function "system" like system("appletviewer java_src_file");

    – Madhusoodan P
    Oct 11 '16 at 4:09











  • Will the .exe works in windows system with no JRE ?

    – Arpit Agarwal
    Jan 2 '17 at 23:52











  • Just to be complete (did not try it myself because we needed exe wrapper, not installer): Installer packages can also be created using javapackager (see docs.oracle.com/javase/8/docs/technotes/guides/deploy/…). To create EXE or MSI installer, additionally Inno Setup or WiX need to be downloaded and installed.

    – anre
    Mar 17 '17 at 15:32











  • May be NSIS also helps; nsis.sourceforge.net/Java_Launcher

    – baris.aydinoz
    May 6 '18 at 7:40













469












469








469


305






If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?



I also need an installer for my program.










share|improve this question
















If I have a Java source file (*.java) or a class file (*.class), how can I convert it to a .exe file?



I also need an installer for my program.







java installer exe






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Apr 29 '18 at 6:16









xskxzr

7,11492557




7,11492557










asked Sep 29 '08 at 1:23









WaseemWaseem

4,812143743




4,812143743




closed as off-topic by Bill the Lizard Oct 7 '13 at 1:36


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Bill the Lizard
If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Bill the Lizard Oct 7 '13 at 1:36


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – Bill the Lizard
If this question can be reworded to fit the rules in the help center, please edit the question.












  • simple hack for applets: write a C code with main and a call to function "system" like system("appletviewer java_src_file");

    – Madhusoodan P
    Oct 11 '16 at 4:09











  • Will the .exe works in windows system with no JRE ?

    – Arpit Agarwal
    Jan 2 '17 at 23:52











  • Just to be complete (did not try it myself because we needed exe wrapper, not installer): Installer packages can also be created using javapackager (see docs.oracle.com/javase/8/docs/technotes/guides/deploy/…). To create EXE or MSI installer, additionally Inno Setup or WiX need to be downloaded and installed.

    – anre
    Mar 17 '17 at 15:32











  • May be NSIS also helps; nsis.sourceforge.net/Java_Launcher

    – baris.aydinoz
    May 6 '18 at 7:40

















  • simple hack for applets: write a C code with main and a call to function "system" like system("appletviewer java_src_file");

    – Madhusoodan P
    Oct 11 '16 at 4:09











  • Will the .exe works in windows system with no JRE ?

    – Arpit Agarwal
    Jan 2 '17 at 23:52











  • Just to be complete (did not try it myself because we needed exe wrapper, not installer): Installer packages can also be created using javapackager (see docs.oracle.com/javase/8/docs/technotes/guides/deploy/…). To create EXE or MSI installer, additionally Inno Setup or WiX need to be downloaded and installed.

    – anre
    Mar 17 '17 at 15:32











  • May be NSIS also helps; nsis.sourceforge.net/Java_Launcher

    – baris.aydinoz
    May 6 '18 at 7:40
















simple hack for applets: write a C code with main and a call to function "system" like system("appletviewer java_src_file");

– Madhusoodan P
Oct 11 '16 at 4:09





simple hack for applets: write a C code with main and a call to function "system" like system("appletviewer java_src_file");

– Madhusoodan P
Oct 11 '16 at 4:09













Will the .exe works in windows system with no JRE ?

– Arpit Agarwal
Jan 2 '17 at 23:52





Will the .exe works in windows system with no JRE ?

– Arpit Agarwal
Jan 2 '17 at 23:52













Just to be complete (did not try it myself because we needed exe wrapper, not installer): Installer packages can also be created using javapackager (see docs.oracle.com/javase/8/docs/technotes/guides/deploy/…). To create EXE or MSI installer, additionally Inno Setup or WiX need to be downloaded and installed.

– anre
Mar 17 '17 at 15:32





Just to be complete (did not try it myself because we needed exe wrapper, not installer): Installer packages can also be created using javapackager (see docs.oracle.com/javase/8/docs/technotes/guides/deploy/…). To create EXE or MSI installer, additionally Inno Setup or WiX need to be downloaded and installed.

– anre
Mar 17 '17 at 15:32













May be NSIS also helps; nsis.sourceforge.net/Java_Launcher

– baris.aydinoz
May 6 '18 at 7:40





May be NSIS also helps; nsis.sourceforge.net/Java_Launcher

– baris.aydinoz
May 6 '18 at 7:40












13 Answers
13






active

oldest

votes


















303














javapackager




The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version.



– Oracle's documentation




The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.



WinRun4J




WinRun4j is a java launcher for windows. It is an alternative to javaw.exe and provides the following benefits:



  • Uses an INI file for specifying classpath, main class, vm args, program args.

  • Custom executable name that appears in task manager.

  • Additional JVM args for more flexible memory use.

  • Built-in icon replacer for custom icon.

  • [more bullet points follow]

– WinRun4J's webpage




WinRun4J is an open source utility. It has many features.



packr




Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X, adding a native executable file to make it appear like a native app. Packr is most suitable for GUI applications.



– packr README




packr is another open source tool.



JSmooth




JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.



– JSmooth's website




JSmooth is open source and has features, but it is very old. The last release was in 2007.



JexePack




JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. Both console and windowed applications are supported.



– JexePack's website




JexePack is trialware. Payment is required for production use, and exe files created with this tool will display "reminders" without payment. Also, the last release was in 2013.



InstallAnywhere




InstallAnywhere makes it easy for developers to create professional installation software for any platform. With InstallAnywhere, you’ll adapt to industry changes quickly, get to market faster and deliver an engaging customer experience. And know the vulnerability of your project’s OSS components before you ship.



– InstallAnywhere's website




InstallAnywhere is a commercial/enterprise package that generates installers for Java-based programs. It's probably capable of creating .exe files.



Executable JAR files



As an alternative to .exe files, you can create a JAR file that automatically runs when double-clicked, by adding an entry point to the JAR manifest.




For more information



An excellent source of information on this topic is Excelsior's article "Convert Java to EXE – Why, When, When Not and How".



See also the companion article "Best JAR to EXE Conversion Tools, Free and Commercial".






share|improve this answer

























  • It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

    – Maria Irudaya Regilan J
    Nov 19 '17 at 13:43


















106














Launch4j




Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.



– Launch4j's website







share|improve this answer
































    33















    UPDATE: GCJ is dead. It was officially removed from the GCC project in 2016. Even before that, it was practically abandoned for seven years, and in any case it was never sufficiently complete to serve as a viable alternative Java implementation.



    Go find another Java AOT compiler.




    GCJ: The GNU Compiler for Java can compile Java source code into native machine code, including Windows executables.



    Although not everything in Java is supported under GCJ, especially the GUI components (see
    What Java API's are supported? How complete is the support? question from the FAQ). I haven't used GCJ much, but from the limited testing I've done with console applications, it seems fine.



    One downside of using GCJ to create an standalone executable is that the size of the resulting EXE can be quite large. One time I compiled a trivial console application in GCJ and the result was an executable about 1 MB. (There may be ways around this that I am not aware of. Another option would be executable compression programs.)



    In terms of open-source installers, the Nullsoft Scriptable Install System is a scriptable installer. If you're curious, there are user contributed examples on how to detect the presence of a JRE and install it automatically if the required JRE is not installed. (Just to let you know, I haven't used NSIS before.)



    For more information on using NSIS for installing Java applications, please take a look at my response for the question "What's the best way to distribute Java applications?"






    share|improve this answer




















    • 2





      Project is actually dead, as I can see. No news on main page

      – Vladislav Rastrusny
      Oct 31 '14 at 17:42











    • The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

      – Thorbjørn Ravn Andersen
      Oct 12 '15 at 11:17


















    23














    You could make a batch file with the following code:



    start javaw -jar JarFile.jar


    and convert the .bat to an .exe using any .bat to .exe converter.






    share|improve this answer




















    • 1





      A good wrapper either brings a JRE or installs it if needed and handles error situations.

      – Thorbjørn Ravn Andersen
      Jan 16 '17 at 2:01


















    16














    We're using Install4J to build installers for windows or unix environments.



    It's easily customizable up to the point where you want to write scripts for special actions that cannot be done with standard dialogues. But even though we're setting up windows services with it, we're only using standard components.



    • installer + launcher

    • windows or unix

    • scriptable in Java

    • ant task

    • lots of customizable standard panels and actions

    • optionally includes or downloads a JRE

    • can also launch windows services

    • multiple languages

    I think Launch4J is from the same company (just the launcher - no installer).



    PS: sadly i'm not getting paid for this endorsement. I just like that tool.






    share|improve this answer






























      15














      The latest Java Web Start has been enhanced to allow good offline operation as well as allowing "local installation". It is worth looking into.



      EDIT 2018: Java Web Start is no longer bundled with the newest JDK's. Oracle is pushing towards a "deploy your app locally with an enclosed JRE" model instead.






      share|improve this answer

























      • Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

        – Thorbjørn Ravn Andersen
        Jan 16 '17 at 2:02


















      9














      If you need to convert your entire application to native code, i.e. an EXE plus DLLs, there is ExcelsiorJET. I found it works well and provided an alternative to bundling a JRE.






      share|improve this answer























      • Really expensive, though.

        – Mordechai
        Jun 25 '15 at 12:03


















      9














      IMHO JSmooth seems to do a pretty good job.






      share|improve this answer
































        6














        I would say launch4j is the best tool for converting a java source code(.java) to .exe file
        You can even bundle a jre with it for distribution and the exe can even be iconified.
        Although the size of application increases, it makes sure that the application will work perfectly even if the user does not have a jre installed. It also makes sure that you are able to provide the specific jre required for your app without the user having to install it separately.
        But unfortunately, java loses its importance. Its multi platform support is totally ignored and the final app is only supported for windows. But that is not a big deal, if you are catering only to windows users.






        share|improve this answer






























          5














          You can use Janel. This last works as an application launcher or service launcher (available from 4.x).






          share|improve this answer






























            4














            Alternatively, you can use some java-to-c translator (e.g., JCGO) and compile the generated C files to a native binary (.exe) file for the target platform.






            share|improve this answer


















            • 2





              I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

              – Camilo Martin
              Dec 18 '12 at 9:42


















            3














            I can be forgiven for being against converting a java program to a .exe Application and I have My reasons. the Major one being that a java program can be compiled to a jar file from A lot of IDE's. When the program is in .jar format, it can run in Multiple Platforms as opposed to .exe which would run Only in very limited Environment. I am for the Idea that Java Programs shoudl not be converted to Exe unless it is very neccesary. One can always write .bat files that runs the Java program while it is a jar file.



            if it is really neccesary to convert it to exe, Jar2Exe converter silently does that and one can also attach Libraries that are compiled together with the Main Application.






            share|improve this answer






























              2














              You can convert jar to exe using jar2exe. However you need to purchase the software. If you need a open source software i would suggest JSmooth.






              share|improve this answer































                13 Answers
                13






                active

                oldest

                votes








                13 Answers
                13






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                303














                javapackager




                The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version.



                – Oracle's documentation




                The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.



                WinRun4J




                WinRun4j is a java launcher for windows. It is an alternative to javaw.exe and provides the following benefits:



                • Uses an INI file for specifying classpath, main class, vm args, program args.

                • Custom executable name that appears in task manager.

                • Additional JVM args for more flexible memory use.

                • Built-in icon replacer for custom icon.

                • [more bullet points follow]

                – WinRun4J's webpage




                WinRun4J is an open source utility. It has many features.



                packr




                Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X, adding a native executable file to make it appear like a native app. Packr is most suitable for GUI applications.



                – packr README




                packr is another open source tool.



                JSmooth




                JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.



                – JSmooth's website




                JSmooth is open source and has features, but it is very old. The last release was in 2007.



                JexePack




                JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. Both console and windowed applications are supported.



                – JexePack's website




                JexePack is trialware. Payment is required for production use, and exe files created with this tool will display "reminders" without payment. Also, the last release was in 2013.



                InstallAnywhere




                InstallAnywhere makes it easy for developers to create professional installation software for any platform. With InstallAnywhere, you’ll adapt to industry changes quickly, get to market faster and deliver an engaging customer experience. And know the vulnerability of your project’s OSS components before you ship.



                – InstallAnywhere's website




                InstallAnywhere is a commercial/enterprise package that generates installers for Java-based programs. It's probably capable of creating .exe files.



                Executable JAR files



                As an alternative to .exe files, you can create a JAR file that automatically runs when double-clicked, by adding an entry point to the JAR manifest.




                For more information



                An excellent source of information on this topic is Excelsior's article "Convert Java to EXE – Why, When, When Not and How".



                See also the companion article "Best JAR to EXE Conversion Tools, Free and Commercial".






                share|improve this answer

























                • It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

                  – Maria Irudaya Regilan J
                  Nov 19 '17 at 13:43















                303














                javapackager




                The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version.



                – Oracle's documentation




                The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.



                WinRun4J




                WinRun4j is a java launcher for windows. It is an alternative to javaw.exe and provides the following benefits:



                • Uses an INI file for specifying classpath, main class, vm args, program args.

                • Custom executable name that appears in task manager.

                • Additional JVM args for more flexible memory use.

                • Built-in icon replacer for custom icon.

                • [more bullet points follow]

                – WinRun4J's webpage




                WinRun4J is an open source utility. It has many features.



                packr




                Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X, adding a native executable file to make it appear like a native app. Packr is most suitable for GUI applications.



                – packr README




                packr is another open source tool.



                JSmooth




                JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.



                – JSmooth's website




                JSmooth is open source and has features, but it is very old. The last release was in 2007.



                JexePack




                JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. Both console and windowed applications are supported.



                – JexePack's website




                JexePack is trialware. Payment is required for production use, and exe files created with this tool will display "reminders" without payment. Also, the last release was in 2013.



                InstallAnywhere




                InstallAnywhere makes it easy for developers to create professional installation software for any platform. With InstallAnywhere, you’ll adapt to industry changes quickly, get to market faster and deliver an engaging customer experience. And know the vulnerability of your project’s OSS components before you ship.



                – InstallAnywhere's website




                InstallAnywhere is a commercial/enterprise package that generates installers for Java-based programs. It's probably capable of creating .exe files.



                Executable JAR files



                As an alternative to .exe files, you can create a JAR file that automatically runs when double-clicked, by adding an entry point to the JAR manifest.




                For more information



                An excellent source of information on this topic is Excelsior's article "Convert Java to EXE – Why, When, When Not and How".



                See also the companion article "Best JAR to EXE Conversion Tools, Free and Commercial".






                share|improve this answer

























                • It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

                  – Maria Irudaya Regilan J
                  Nov 19 '17 at 13:43













                303












                303








                303







                javapackager




                The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version.



                – Oracle's documentation




                The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.



                WinRun4J




                WinRun4j is a java launcher for windows. It is an alternative to javaw.exe and provides the following benefits:



                • Uses an INI file for specifying classpath, main class, vm args, program args.

                • Custom executable name that appears in task manager.

                • Additional JVM args for more flexible memory use.

                • Built-in icon replacer for custom icon.

                • [more bullet points follow]

                – WinRun4J's webpage




                WinRun4J is an open source utility. It has many features.



                packr




                Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X, adding a native executable file to make it appear like a native app. Packr is most suitable for GUI applications.



                – packr README




                packr is another open source tool.



                JSmooth




                JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.



                – JSmooth's website




                JSmooth is open source and has features, but it is very old. The last release was in 2007.



                JexePack




                JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. Both console and windowed applications are supported.



                – JexePack's website




                JexePack is trialware. Payment is required for production use, and exe files created with this tool will display "reminders" without payment. Also, the last release was in 2013.



                InstallAnywhere




                InstallAnywhere makes it easy for developers to create professional installation software for any platform. With InstallAnywhere, you’ll adapt to industry changes quickly, get to market faster and deliver an engaging customer experience. And know the vulnerability of your project’s OSS components before you ship.



                – InstallAnywhere's website




                InstallAnywhere is a commercial/enterprise package that generates installers for Java-based programs. It's probably capable of creating .exe files.



                Executable JAR files



                As an alternative to .exe files, you can create a JAR file that automatically runs when double-clicked, by adding an entry point to the JAR manifest.




                For more information



                An excellent source of information on this topic is Excelsior's article "Convert Java to EXE – Why, When, When Not and How".



                See also the companion article "Best JAR to EXE Conversion Tools, Free and Commercial".






                share|improve this answer















                javapackager




                The Java Packager tool compiles, packages, and prepares Java and JavaFX applications for distribution. The javapackager command is the command-line version.



                – Oracle's documentation




                The javapackager utility ships with the JDK. It can generate .exe files with the -native exe flag, among many other things.



                WinRun4J




                WinRun4j is a java launcher for windows. It is an alternative to javaw.exe and provides the following benefits:



                • Uses an INI file for specifying classpath, main class, vm args, program args.

                • Custom executable name that appears in task manager.

                • Additional JVM args for more flexible memory use.

                • Built-in icon replacer for custom icon.

                • [more bullet points follow]

                – WinRun4J's webpage




                WinRun4J is an open source utility. It has many features.



                packr




                Packages your JAR, assets and a JVM for distribution on Windows, Linux and Mac OS X, adding a native executable file to make it appear like a native app. Packr is most suitable for GUI applications.



                – packr README




                packr is another open source tool.



                JSmooth




                JSmooth is a Java Executable Wrapper. It creates native Windows launchers (standard .exe) for your java applications. It makes java deployment much smoother and user-friendly, as it is able to find any installed Java VM by itself.



                – JSmooth's website




                JSmooth is open source and has features, but it is very old. The last release was in 2007.



                JexePack




                JexePack is a command line tool (great for automated scripting) that allows you to package your Java application (class files), optionally along with its resources (like GIF/JPG/TXT/etc), into a single compressed 32-bit Windows EXE, which runs using Sun's Java Runtime Environment. Both console and windowed applications are supported.



                – JexePack's website




                JexePack is trialware. Payment is required for production use, and exe files created with this tool will display "reminders" without payment. Also, the last release was in 2013.



                InstallAnywhere




                InstallAnywhere makes it easy for developers to create professional installation software for any platform. With InstallAnywhere, you’ll adapt to industry changes quickly, get to market faster and deliver an engaging customer experience. And know the vulnerability of your project’s OSS components before you ship.



                – InstallAnywhere's website




                InstallAnywhere is a commercial/enterprise package that generates installers for Java-based programs. It's probably capable of creating .exe files.



                Executable JAR files



                As an alternative to .exe files, you can create a JAR file that automatically runs when double-clicked, by adding an entry point to the JAR manifest.




                For more information



                An excellent source of information on this topic is Excelsior's article "Convert Java to EXE – Why, When, When Not and How".



                See also the companion article "Best JAR to EXE Conversion Tools, Free and Commercial".







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 22 '18 at 4:16









                MultiplyByZer0

                2,33122439




                2,33122439










                answered Sep 29 '08 at 1:42









                JayJay

                35.3k115581




                35.3k115581












                • It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

                  – Maria Irudaya Regilan J
                  Nov 19 '17 at 13:43

















                • It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

                  – Maria Irudaya Regilan J
                  Nov 19 '17 at 13:43
















                It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

                – Maria Irudaya Regilan J
                Nov 19 '17 at 13:43





                It's better using eclipse and Jsmooth. Follow these steps regilanj.wordpress.com/2017/11/19/…

                – Maria Irudaya Regilan J
                Nov 19 '17 at 13:43













                106














                Launch4j




                Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.



                – Launch4j's website







                share|improve this answer





























                  106














                  Launch4j




                  Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.



                  – Launch4j's website







                  share|improve this answer



























                    106












                    106








                    106







                    Launch4j




                    Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.



                    – Launch4j's website







                    share|improve this answer















                    Launch4j




                    Launch4j is a cross-platform tool for wrapping Java applications distributed as jars in lightweight Windows native executables. The executable can be configured to search for a certain JRE version or use a bundled one, and it's possible to set runtime options, like the initial/max heap size. The wrapper also provides better user experience through an application icon, a native pre-JRE splash screen, a custom process name, and a Java download page in case the appropriate JRE cannot be found.



                    – Launch4j's website








                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Nov 24 '18 at 6:15









                    MultiplyByZer0

                    2,33122439




                    2,33122439










                    answered Sep 29 '08 at 8:10









                    the.duckmanthe.duckman

                    5,87631720




                    5,87631720





















                        33















                        UPDATE: GCJ is dead. It was officially removed from the GCC project in 2016. Even before that, it was practically abandoned for seven years, and in any case it was never sufficiently complete to serve as a viable alternative Java implementation.



                        Go find another Java AOT compiler.




                        GCJ: The GNU Compiler for Java can compile Java source code into native machine code, including Windows executables.



                        Although not everything in Java is supported under GCJ, especially the GUI components (see
                        What Java API's are supported? How complete is the support? question from the FAQ). I haven't used GCJ much, but from the limited testing I've done with console applications, it seems fine.



                        One downside of using GCJ to create an standalone executable is that the size of the resulting EXE can be quite large. One time I compiled a trivial console application in GCJ and the result was an executable about 1 MB. (There may be ways around this that I am not aware of. Another option would be executable compression programs.)



                        In terms of open-source installers, the Nullsoft Scriptable Install System is a scriptable installer. If you're curious, there are user contributed examples on how to detect the presence of a JRE and install it automatically if the required JRE is not installed. (Just to let you know, I haven't used NSIS before.)



                        For more information on using NSIS for installing Java applications, please take a look at my response for the question "What's the best way to distribute Java applications?"






                        share|improve this answer




















                        • 2





                          Project is actually dead, as I can see. No news on main page

                          – Vladislav Rastrusny
                          Oct 31 '14 at 17:42











                        • The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

                          – Thorbjørn Ravn Andersen
                          Oct 12 '15 at 11:17















                        33















                        UPDATE: GCJ is dead. It was officially removed from the GCC project in 2016. Even before that, it was practically abandoned for seven years, and in any case it was never sufficiently complete to serve as a viable alternative Java implementation.



                        Go find another Java AOT compiler.




                        GCJ: The GNU Compiler for Java can compile Java source code into native machine code, including Windows executables.



                        Although not everything in Java is supported under GCJ, especially the GUI components (see
                        What Java API's are supported? How complete is the support? question from the FAQ). I haven't used GCJ much, but from the limited testing I've done with console applications, it seems fine.



                        One downside of using GCJ to create an standalone executable is that the size of the resulting EXE can be quite large. One time I compiled a trivial console application in GCJ and the result was an executable about 1 MB. (There may be ways around this that I am not aware of. Another option would be executable compression programs.)



                        In terms of open-source installers, the Nullsoft Scriptable Install System is a scriptable installer. If you're curious, there are user contributed examples on how to detect the presence of a JRE and install it automatically if the required JRE is not installed. (Just to let you know, I haven't used NSIS before.)



                        For more information on using NSIS for installing Java applications, please take a look at my response for the question "What's the best way to distribute Java applications?"






                        share|improve this answer




















                        • 2





                          Project is actually dead, as I can see. No news on main page

                          – Vladislav Rastrusny
                          Oct 31 '14 at 17:42











                        • The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

                          – Thorbjørn Ravn Andersen
                          Oct 12 '15 at 11:17













                        33












                        33








                        33








                        UPDATE: GCJ is dead. It was officially removed from the GCC project in 2016. Even before that, it was practically abandoned for seven years, and in any case it was never sufficiently complete to serve as a viable alternative Java implementation.



                        Go find another Java AOT compiler.




                        GCJ: The GNU Compiler for Java can compile Java source code into native machine code, including Windows executables.



                        Although not everything in Java is supported under GCJ, especially the GUI components (see
                        What Java API's are supported? How complete is the support? question from the FAQ). I haven't used GCJ much, but from the limited testing I've done with console applications, it seems fine.



                        One downside of using GCJ to create an standalone executable is that the size of the resulting EXE can be quite large. One time I compiled a trivial console application in GCJ and the result was an executable about 1 MB. (There may be ways around this that I am not aware of. Another option would be executable compression programs.)



                        In terms of open-source installers, the Nullsoft Scriptable Install System is a scriptable installer. If you're curious, there are user contributed examples on how to detect the presence of a JRE and install it automatically if the required JRE is not installed. (Just to let you know, I haven't used NSIS before.)



                        For more information on using NSIS for installing Java applications, please take a look at my response for the question "What's the best way to distribute Java applications?"






                        share|improve this answer
















                        UPDATE: GCJ is dead. It was officially removed from the GCC project in 2016. Even before that, it was practically abandoned for seven years, and in any case it was never sufficiently complete to serve as a viable alternative Java implementation.



                        Go find another Java AOT compiler.




                        GCJ: The GNU Compiler for Java can compile Java source code into native machine code, including Windows executables.



                        Although not everything in Java is supported under GCJ, especially the GUI components (see
                        What Java API's are supported? How complete is the support? question from the FAQ). I haven't used GCJ much, but from the limited testing I've done with console applications, it seems fine.



                        One downside of using GCJ to create an standalone executable is that the size of the resulting EXE can be quite large. One time I compiled a trivial console application in GCJ and the result was an executable about 1 MB. (There may be ways around this that I am not aware of. Another option would be executable compression programs.)



                        In terms of open-source installers, the Nullsoft Scriptable Install System is a scriptable installer. If you're curious, there are user contributed examples on how to detect the presence of a JRE and install it automatically if the required JRE is not installed. (Just to let you know, I haven't used NSIS before.)



                        For more information on using NSIS for installing Java applications, please take a look at my response for the question "What's the best way to distribute Java applications?"







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Nov 24 '18 at 8:27









                        MultiplyByZer0

                        2,33122439




                        2,33122439










                        answered Sep 29 '08 at 1:40









                        coobirdcoobird

                        136k31197221




                        136k31197221







                        • 2





                          Project is actually dead, as I can see. No news on main page

                          – Vladislav Rastrusny
                          Oct 31 '14 at 17:42











                        • The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

                          – Thorbjørn Ravn Andersen
                          Oct 12 '15 at 11:17












                        • 2





                          Project is actually dead, as I can see. No news on main page

                          – Vladislav Rastrusny
                          Oct 31 '14 at 17:42











                        • The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

                          – Thorbjørn Ravn Andersen
                          Oct 12 '15 at 11:17







                        2




                        2





                        Project is actually dead, as I can see. No news on main page

                        – Vladislav Rastrusny
                        Oct 31 '14 at 17:42





                        Project is actually dead, as I can see. No news on main page

                        – Vladislav Rastrusny
                        Oct 31 '14 at 17:42













                        The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

                        – Thorbjørn Ravn Andersen
                        Oct 12 '15 at 11:17





                        The GNU Java development has pretty much moved to OpenJDK, as the non-Oracle sources could not get access to the TCK for validation.

                        – Thorbjørn Ravn Andersen
                        Oct 12 '15 at 11:17











                        23














                        You could make a batch file with the following code:



                        start javaw -jar JarFile.jar


                        and convert the .bat to an .exe using any .bat to .exe converter.






                        share|improve this answer




















                        • 1





                          A good wrapper either brings a JRE or installs it if needed and handles error situations.

                          – Thorbjørn Ravn Andersen
                          Jan 16 '17 at 2:01















                        23














                        You could make a batch file with the following code:



                        start javaw -jar JarFile.jar


                        and convert the .bat to an .exe using any .bat to .exe converter.






                        share|improve this answer




















                        • 1





                          A good wrapper either brings a JRE or installs it if needed and handles error situations.

                          – Thorbjørn Ravn Andersen
                          Jan 16 '17 at 2:01













                        23












                        23








                        23







                        You could make a batch file with the following code:



                        start javaw -jar JarFile.jar


                        and convert the .bat to an .exe using any .bat to .exe converter.






                        share|improve this answer















                        You could make a batch file with the following code:



                        start javaw -jar JarFile.jar


                        and convert the .bat to an .exe using any .bat to .exe converter.







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Nov 24 '18 at 8:37









                        MultiplyByZer0

                        2,33122439




                        2,33122439










                        answered Aug 17 '13 at 15:42







                        user2675678














                        • 1





                          A good wrapper either brings a JRE or installs it if needed and handles error situations.

                          – Thorbjørn Ravn Andersen
                          Jan 16 '17 at 2:01












                        • 1





                          A good wrapper either brings a JRE or installs it if needed and handles error situations.

                          – Thorbjørn Ravn Andersen
                          Jan 16 '17 at 2:01







                        1




                        1





                        A good wrapper either brings a JRE or installs it if needed and handles error situations.

                        – Thorbjørn Ravn Andersen
                        Jan 16 '17 at 2:01





                        A good wrapper either brings a JRE or installs it if needed and handles error situations.

                        – Thorbjørn Ravn Andersen
                        Jan 16 '17 at 2:01











                        16














                        We're using Install4J to build installers for windows or unix environments.



                        It's easily customizable up to the point where you want to write scripts for special actions that cannot be done with standard dialogues. But even though we're setting up windows services with it, we're only using standard components.



                        • installer + launcher

                        • windows or unix

                        • scriptable in Java

                        • ant task

                        • lots of customizable standard panels and actions

                        • optionally includes or downloads a JRE

                        • can also launch windows services

                        • multiple languages

                        I think Launch4J is from the same company (just the launcher - no installer).



                        PS: sadly i'm not getting paid for this endorsement. I just like that tool.






                        share|improve this answer



























                          16














                          We're using Install4J to build installers for windows or unix environments.



                          It's easily customizable up to the point where you want to write scripts for special actions that cannot be done with standard dialogues. But even though we're setting up windows services with it, we're only using standard components.



                          • installer + launcher

                          • windows or unix

                          • scriptable in Java

                          • ant task

                          • lots of customizable standard panels and actions

                          • optionally includes or downloads a JRE

                          • can also launch windows services

                          • multiple languages

                          I think Launch4J is from the same company (just the launcher - no installer).



                          PS: sadly i'm not getting paid for this endorsement. I just like that tool.






                          share|improve this answer

























                            16












                            16








                            16







                            We're using Install4J to build installers for windows or unix environments.



                            It's easily customizable up to the point where you want to write scripts for special actions that cannot be done with standard dialogues. But even though we're setting up windows services with it, we're only using standard components.



                            • installer + launcher

                            • windows or unix

                            • scriptable in Java

                            • ant task

                            • lots of customizable standard panels and actions

                            • optionally includes or downloads a JRE

                            • can also launch windows services

                            • multiple languages

                            I think Launch4J is from the same company (just the launcher - no installer).



                            PS: sadly i'm not getting paid for this endorsement. I just like that tool.






                            share|improve this answer













                            We're using Install4J to build installers for windows or unix environments.



                            It's easily customizable up to the point where you want to write scripts for special actions that cannot be done with standard dialogues. But even though we're setting up windows services with it, we're only using standard components.



                            • installer + launcher

                            • windows or unix

                            • scriptable in Java

                            • ant task

                            • lots of customizable standard panels and actions

                            • optionally includes or downloads a JRE

                            • can also launch windows services

                            • multiple languages

                            I think Launch4J is from the same company (just the launcher - no installer).



                            PS: sadly i'm not getting paid for this endorsement. I just like that tool.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Sep 29 '08 at 13:01









                            StroboskopStroboskop

                            2,76352847




                            2,76352847





















                                15














                                The latest Java Web Start has been enhanced to allow good offline operation as well as allowing "local installation". It is worth looking into.



                                EDIT 2018: Java Web Start is no longer bundled with the newest JDK's. Oracle is pushing towards a "deploy your app locally with an enclosed JRE" model instead.






                                share|improve this answer

























                                • Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

                                  – Thorbjørn Ravn Andersen
                                  Jan 16 '17 at 2:02















                                15














                                The latest Java Web Start has been enhanced to allow good offline operation as well as allowing "local installation". It is worth looking into.



                                EDIT 2018: Java Web Start is no longer bundled with the newest JDK's. Oracle is pushing towards a "deploy your app locally with an enclosed JRE" model instead.






                                share|improve this answer

























                                • Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

                                  – Thorbjørn Ravn Andersen
                                  Jan 16 '17 at 2:02













                                15












                                15








                                15







                                The latest Java Web Start has been enhanced to allow good offline operation as well as allowing "local installation". It is worth looking into.



                                EDIT 2018: Java Web Start is no longer bundled with the newest JDK's. Oracle is pushing towards a "deploy your app locally with an enclosed JRE" model instead.






                                share|improve this answer















                                The latest Java Web Start has been enhanced to allow good offline operation as well as allowing "local installation". It is worth looking into.



                                EDIT 2018: Java Web Start is no longer bundled with the newest JDK's. Oracle is pushing towards a "deploy your app locally with an enclosed JRE" model instead.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Sep 29 '18 at 15:07

























                                answered May 27 '09 at 10:09









                                Thorbjørn Ravn AndersenThorbjørn Ravn Andersen

                                58.3k25151290




                                58.3k25151290












                                • Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

                                  – Thorbjørn Ravn Andersen
                                  Jan 16 '17 at 2:02

















                                • Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

                                  – Thorbjørn Ravn Andersen
                                  Jan 16 '17 at 2:02
















                                Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

                                – Thorbjørn Ravn Andersen
                                Jan 16 '17 at 2:02





                                Apparently JWS has had security tightened so much, that it requires a lot more effort than previously to get running. It might still be useful for installers, though.

                                – Thorbjørn Ravn Andersen
                                Jan 16 '17 at 2:02











                                9














                                If you need to convert your entire application to native code, i.e. an EXE plus DLLs, there is ExcelsiorJET. I found it works well and provided an alternative to bundling a JRE.






                                share|improve this answer























                                • Really expensive, though.

                                  – Mordechai
                                  Jun 25 '15 at 12:03















                                9














                                If you need to convert your entire application to native code, i.e. an EXE plus DLLs, there is ExcelsiorJET. I found it works well and provided an alternative to bundling a JRE.






                                share|improve this answer























                                • Really expensive, though.

                                  – Mordechai
                                  Jun 25 '15 at 12:03













                                9












                                9








                                9







                                If you need to convert your entire application to native code, i.e. an EXE plus DLLs, there is ExcelsiorJET. I found it works well and provided an alternative to bundling a JRE.






                                share|improve this answer













                                If you need to convert your entire application to native code, i.e. an EXE plus DLLs, there is ExcelsiorJET. I found it works well and provided an alternative to bundling a JRE.







                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered Apr 29 '10 at 1:38









                                mdmamdma

                                48.8k1178113




                                48.8k1178113












                                • Really expensive, though.

                                  – Mordechai
                                  Jun 25 '15 at 12:03

















                                • Really expensive, though.

                                  – Mordechai
                                  Jun 25 '15 at 12:03
















                                Really expensive, though.

                                – Mordechai
                                Jun 25 '15 at 12:03





                                Really expensive, though.

                                – Mordechai
                                Jun 25 '15 at 12:03











                                9














                                IMHO JSmooth seems to do a pretty good job.






                                share|improve this answer





























                                  9














                                  IMHO JSmooth seems to do a pretty good job.






                                  share|improve this answer



























                                    9












                                    9








                                    9







                                    IMHO JSmooth seems to do a pretty good job.






                                    share|improve this answer















                                    IMHO JSmooth seems to do a pretty good job.







                                    share|improve this answer














                                    share|improve this answer



                                    share|improve this answer








                                    edited Apr 25 '16 at 4:18









                                    Sнаđошƒаӽ

                                    7,435104567




                                    7,435104567










                                    answered Sep 29 '08 at 1:37









                                    jussijjussij

                                    9,24712442




                                    9,24712442





















                                        6














                                        I would say launch4j is the best tool for converting a java source code(.java) to .exe file
                                        You can even bundle a jre with it for distribution and the exe can even be iconified.
                                        Although the size of application increases, it makes sure that the application will work perfectly even if the user does not have a jre installed. It also makes sure that you are able to provide the specific jre required for your app without the user having to install it separately.
                                        But unfortunately, java loses its importance. Its multi platform support is totally ignored and the final app is only supported for windows. But that is not a big deal, if you are catering only to windows users.






                                        share|improve this answer



























                                          6














                                          I would say launch4j is the best tool for converting a java source code(.java) to .exe file
                                          You can even bundle a jre with it for distribution and the exe can even be iconified.
                                          Although the size of application increases, it makes sure that the application will work perfectly even if the user does not have a jre installed. It also makes sure that you are able to provide the specific jre required for your app without the user having to install it separately.
                                          But unfortunately, java loses its importance. Its multi platform support is totally ignored and the final app is only supported for windows. But that is not a big deal, if you are catering only to windows users.






                                          share|improve this answer

























                                            6












                                            6








                                            6







                                            I would say launch4j is the best tool for converting a java source code(.java) to .exe file
                                            You can even bundle a jre with it for distribution and the exe can even be iconified.
                                            Although the size of application increases, it makes sure that the application will work perfectly even if the user does not have a jre installed. It also makes sure that you are able to provide the specific jre required for your app without the user having to install it separately.
                                            But unfortunately, java loses its importance. Its multi platform support is totally ignored and the final app is only supported for windows. But that is not a big deal, if you are catering only to windows users.






                                            share|improve this answer













                                            I would say launch4j is the best tool for converting a java source code(.java) to .exe file
                                            You can even bundle a jre with it for distribution and the exe can even be iconified.
                                            Although the size of application increases, it makes sure that the application will work perfectly even if the user does not have a jre installed. It also makes sure that you are able to provide the specific jre required for your app without the user having to install it separately.
                                            But unfortunately, java loses its importance. Its multi platform support is totally ignored and the final app is only supported for windows. But that is not a big deal, if you are catering only to windows users.







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Aug 27 '12 at 18:40









                                            Pratanu MandalPratanu Mandal

                                            334216




                                            334216





















                                                5














                                                You can use Janel. This last works as an application launcher or service launcher (available from 4.x).






                                                share|improve this answer



























                                                  5














                                                  You can use Janel. This last works as an application launcher or service launcher (available from 4.x).






                                                  share|improve this answer

























                                                    5












                                                    5








                                                    5







                                                    You can use Janel. This last works as an application launcher or service launcher (available from 4.x).






                                                    share|improve this answer













                                                    You can use Janel. This last works as an application launcher or service launcher (available from 4.x).







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Jun 10 '13 at 9:13









                                                    L. BIZEL. BIZE

                                                    15524




                                                    15524





















                                                        4














                                                        Alternatively, you can use some java-to-c translator (e.g., JCGO) and compile the generated C files to a native binary (.exe) file for the target platform.






                                                        share|improve this answer


















                                                        • 2





                                                          I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

                                                          – Camilo Martin
                                                          Dec 18 '12 at 9:42















                                                        4














                                                        Alternatively, you can use some java-to-c translator (e.g., JCGO) and compile the generated C files to a native binary (.exe) file for the target platform.






                                                        share|improve this answer


















                                                        • 2





                                                          I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

                                                          – Camilo Martin
                                                          Dec 18 '12 at 9:42













                                                        4












                                                        4








                                                        4







                                                        Alternatively, you can use some java-to-c translator (e.g., JCGO) and compile the generated C files to a native binary (.exe) file for the target platform.






                                                        share|improve this answer













                                                        Alternatively, you can use some java-to-c translator (e.g., JCGO) and compile the generated C files to a native binary (.exe) file for the target platform.







                                                        share|improve this answer












                                                        share|improve this answer



                                                        share|improve this answer










                                                        answered May 28 '10 at 14:26









                                                        Ivan MaidanskiIvan Maidanski

                                                        1712




                                                        1712







                                                        • 2





                                                          I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

                                                          – Camilo Martin
                                                          Dec 18 '12 at 9:42












                                                        • 2





                                                          I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

                                                          – Camilo Martin
                                                          Dec 18 '12 at 9:42







                                                        2




                                                        2





                                                        I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

                                                        – Camilo Martin
                                                        Dec 18 '12 at 9:42





                                                        I'm very incredulous of this method's effeciveness. I'd have to see it to believe it (think about the fact that most Java code is API calls to the JRE, and all of that isn't present on C, nevermind the differences in how the language works).

                                                        – Camilo Martin
                                                        Dec 18 '12 at 9:42











                                                        3














                                                        I can be forgiven for being against converting a java program to a .exe Application and I have My reasons. the Major one being that a java program can be compiled to a jar file from A lot of IDE's. When the program is in .jar format, it can run in Multiple Platforms as opposed to .exe which would run Only in very limited Environment. I am for the Idea that Java Programs shoudl not be converted to Exe unless it is very neccesary. One can always write .bat files that runs the Java program while it is a jar file.



                                                        if it is really neccesary to convert it to exe, Jar2Exe converter silently does that and one can also attach Libraries that are compiled together with the Main Application.






                                                        share|improve this answer



























                                                          3














                                                          I can be forgiven for being against converting a java program to a .exe Application and I have My reasons. the Major one being that a java program can be compiled to a jar file from A lot of IDE's. When the program is in .jar format, it can run in Multiple Platforms as opposed to .exe which would run Only in very limited Environment. I am for the Idea that Java Programs shoudl not be converted to Exe unless it is very neccesary. One can always write .bat files that runs the Java program while it is a jar file.



                                                          if it is really neccesary to convert it to exe, Jar2Exe converter silently does that and one can also attach Libraries that are compiled together with the Main Application.






                                                          share|improve this answer

























                                                            3












                                                            3








                                                            3







                                                            I can be forgiven for being against converting a java program to a .exe Application and I have My reasons. the Major one being that a java program can be compiled to a jar file from A lot of IDE's. When the program is in .jar format, it can run in Multiple Platforms as opposed to .exe which would run Only in very limited Environment. I am for the Idea that Java Programs shoudl not be converted to Exe unless it is very neccesary. One can always write .bat files that runs the Java program while it is a jar file.



                                                            if it is really neccesary to convert it to exe, Jar2Exe converter silently does that and one can also attach Libraries that are compiled together with the Main Application.






                                                            share|improve this answer













                                                            I can be forgiven for being against converting a java program to a .exe Application and I have My reasons. the Major one being that a java program can be compiled to a jar file from A lot of IDE's. When the program is in .jar format, it can run in Multiple Platforms as opposed to .exe which would run Only in very limited Environment. I am for the Idea that Java Programs shoudl not be converted to Exe unless it is very neccesary. One can always write .bat files that runs the Java program while it is a jar file.



                                                            if it is really neccesary to convert it to exe, Jar2Exe converter silently does that and one can also attach Libraries that are compiled together with the Main Application.







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Jul 19 '12 at 13:16









                                                            ErrorNotFoundExceptionErrorNotFoundException

                                                            2,1992173135




                                                            2,1992173135





















                                                                2














                                                                You can convert jar to exe using jar2exe. However you need to purchase the software. If you need a open source software i would suggest JSmooth.






                                                                share|improve this answer





























                                                                  2














                                                                  You can convert jar to exe using jar2exe. However you need to purchase the software. If you need a open source software i would suggest JSmooth.






                                                                  share|improve this answer



























                                                                    2












                                                                    2








                                                                    2







                                                                    You can convert jar to exe using jar2exe. However you need to purchase the software. If you need a open source software i would suggest JSmooth.






                                                                    share|improve this answer















                                                                    You can convert jar to exe using jar2exe. However you need to purchase the software. If you need a open source software i would suggest JSmooth.







                                                                    share|improve this answer














                                                                    share|improve this answer



                                                                    share|improve this answer








                                                                    edited Apr 25 '16 at 4:19









                                                                    Sнаđошƒаӽ

                                                                    7,435104567




                                                                    7,435104567










                                                                    answered Oct 16 '12 at 17:22









                                                                    RaghunandanRaghunandan

                                                                    119k19194237




                                                                    119k19194237













                                                                        Popular posts from this blog

                                                                        Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

                                                                        Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

                                                                        Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved