How to create the exe files for java application

How to create the exe file for java application?
got any software to do that?
Thanks

In terms of converting java applications into exe files, there are 3 schools of thought:
1) Instead of converting it to an exe, convert it to a jar file. Jar files are more portable than exe files because they can be double-clicked on any operating system. The caveat is that a Java interpreter must be installed on the target computer for the double-clicking to work.
http://developer.java.sun.com/developer/Books/javaprogramming/JAR/
2) Create an exe launcher that, when double-clicked, attempts to find a Java interpreter on the local computer and launches the Java application. The exe file is still double-clickable but whether your java application runs depends on whether a Java interpretor is installed on the target computer.
http://www.sureshotsoftware.com/exej/
http://www.objects.com.au/products/jstart/index.jsp
http://www.duckware.com/products/javatools.html
http://www.ucware.com/jexec/
http://www.rolemaker.dk/nonRoleMaker/javalauncher/
http://www.jelude.cjb.net/
http://thor.prohosting.com/~dfolly/java/index.html
3) Create an exe launcher that bundles a Java interpretor. Same as above but when the exe file is double-clicked, it searches for a Java interpreter and if one is not found, it installs one on the target computer. The caveat is that the exe file would have an overhead of 10 MB in size for the interpreter.
http://www.excelsior-usa.com/jet.html (evaluation version available)
4) Convert the Java application into a native exe file. The caveat is that if you use Swing for your GUI, it won't be converted. Also this option is still somewhat experimental.
Can't think of any free options right now.

Similar Messages

  • How to create the exe file for java project.

    How to create the exe file for java project.
    am done the project in java swing , i like to create the project in exe format, so any one help for me,
    send the procedure for that.
    thanking u.

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

  • HOw to create a Batch file for java application and whats the use of this ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    First of all, you're OT.
    Second, you can find this everywhere in the net.
    If you got a manifest declaring main class (an classpath if needed), just create a file named whatever.bat, within same directory of jar file, containing:
    javaw -jar ./WhateverTheNameOfYourJarIs.jar %*By the way, assuming a Windows OS, you can just double click the jar file (no batch is needed).
    Otherwise use:
    javaw -cp listOfJarsAndDirectoriesSeparedBySemiColon country/company/application/package/className %*Where 'country/company/application/package/' just stands for a package path using '/' as separator instead of '.'
    Don't specify the .class extension.
    Javaw only works on Windows (you asked for batch, I assumed .BAT, no .sh), in Linux please use java.exe (path may be needed, Windows doesn't need it 'cause java's executables are copied to system32 folder in order to be always available, see PATH environment variable if you don't know what I'm talking about) and use ':' as classpath (cp) separator.
    The '%***' tail is there in order to pass all parameters, it only works on Windows, refer to your shell docs for other OSs (something like $* may work).
    This way you have a command you can call to launch your code (instead of opening NetBeans just to see your app working). You could schedule tasks on it or just call it in any command prompt (hope you know what it is 'cause there have been people in this very same forum with no clue about it, if not just hold the 'Windows button' and press 'R', then type 'cmd' and run it).
    Finally add dukes and give 'hem away.
    Bye.

  • How to create a Batch file for java application  ?

    HI,
    How to create a Batch file for java application ?
    And whats the use of creating batch file ?
    Thanks in advance

    [http://static.springsource.org/spring-batch/]
    Assuming you want to develop a batch application rather than actually just create a .bat file ..

  • How to create the ini file for java programms

    hi all,
    I have one problem that is ...
    In my project I am using the JDBC connection ...
    in this I am connecting different connections (means differenet usernames and passwords)...
    for this evrey time I have to change the username and password in the
    hardcode ...
    I think that some ini file are there in java ...
    So if anyone knows about use of ini files in java please
    send me..
    thanks........

    In java they are called properties files.
    Look at java.util.Properties which provides methods for reading, writing, etc.

  • How to create a .exe file for a java application

    Hi, I want to create a .exe file for a java application I am developing so that I can schedule it to run at a particular time using Windows Scheduler on WinNT. Is there any way to accomplish this? Or is there any other way in which a Java application can be scheduled to run at a particular time on Windows everyday?

    Create a .bat file and run that. Just have, in the .bat file:
    java YourClassName Alternatively, you can use javaw YourClassName (without *.bat, just put it into Windows Scheduler like suggested above).
    using javaw won't pop up any window...

  • Creating an exe file for java

    Hi all,
    any way to create the exe file using JBuilder 3?
    if possible how to do that?
    how about creating installation file for the application?
    thanks alot

    I think you might need a byte code compiler that converts the .class files to .exe
    I believe there are some products out there that do this. I don't think there is a java utility that performs this type of operation.

  • How to create an exe file for single class

    Hi all,
    l have one some program with only one class and want to create one exe file for
    easily execute for the user.
    I've use exe4j and another tool to do but all failure, the error message always shown me that main class not found.
    Any idea??
    Thanks a lot!

    I suspect your class has somewhat invalid thing.
    Have you verified:
    - The class you wish to be executed contains public static void main(String args[])- The package declaration on your executable-wannabe class is valid
    - In case you need to import another class, make sure the import statement(s) is valid
    No matter what kinda program you use to create .exe from java class, the above things must be valid. AFAIK.
    Regards,
    Farid Herman

  • How to create search index files for Java Pet Store

    Hi All,
    As you may know, the java pet store application uses for the search function a search index object, which itself uses the following files '_36.cfs', 'deletable', 'segments'.
    Now as I want to change the data of the database (delete some pets, and names, etc.), it does not have an effect on the search results. This is because the application uses the search index files and does not use the database for the search query.
    So can anybody help me and tell me how I can create this three files from my *.sql file, so I can search in my own data?
    Thank you very much for your help.
    Regards,
    Wolfgang

    gonso777 wrote:
    Solved:
    I had the same problem. It seems that the installer does not unzip three files where it should.
    With NetBeans (Using File Perspective) or just editing build.xml
    Netbeans: select build.xml/Run Target/Other Targets/unzipindexes: Tough it should work it fails in resolving $javaee.domaindir$ at least in my system, but it does suscessfully create a new directory named ${jee.domaindir} that includes lib/petstore/searchindex and three files: _36.cfs , deletable, segments.
    Copy those three files to your_glasshfish_path/domains/domain1/petstore/searchindex.
    Now you are done. I hope that you had a nice time while waiting two years for it to be answered. How is it that it is not answered anywhere else?
    Regards,
    Ramon Talavera
    www.sciencetechworks.comThanks. I didn't wait 2 years for this, but I just replied on a 2 year old post. I only recently tried the petstore app. I thought I needed to study lucene first to figure things out, it turns out there was an 'internal target' on the build file for this. Thanks a bunch!

  • How to create an exe file in java

    hi all,
    i am trying to create exe file for myapplication plz helpme out in this

    hi
    http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5133369
    The answer is there in Last Post of this Thread
    Hope it will help you
    Thank you

  • Want to create and exe file for .java files

    Hello all :)
    I am making a multi-threaded console application.
    It also takes command line parameters from user.
    I want to create .exe files out of .java files.
    Note:- One class contains main method (in default package) and all other classes are in some specific package
    I want to create an exe for the whole application.
    The solutions which i get on net is exe4j but i was unable to use it.
    Please suggest me to create an windows executable file out of java files.
    Thanx in advance

    by definition, if you double click on the .exe , you won't pass it parameters
    you have to launch a shell, reach the directory where the .exe (or .jar) is stored, and launch the exe directly with parameters, e.g:
    myApplication.exe -u user -p password
    you can't double click on the exe and say "ok, i give you -u -p!" ; everything has to be done simultaneously if your app is using the "String [] args" arguments of main
    if you want to specify parameters after launching the app, you have to grab user input in your main

  • How to create the setup file in java

    hi
    am new to java...
    is it possible to create setup file in java like in .net..
    if yes how?

    i mean our application can be installed in to any other system..
    using .net we can easily generate setup fileThe other people understood what you meant.
    And they suggested that you use one of the free
    installer generator, such as
    http://www.java-source.net/open-source/installer-generators

  • How to create the patch file for Printer installation?

    Hi,
    Recently I bought a network printer and really want to install printer via the batch file, but I don't know how and what command needs to be typed in Notepad.
    Could you please give me some templates for this?
    Thanks,

    Hello avocado0227,
    Please take a look at the following thread about Batch File to install printer.
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/372a3334-904e-4506-a63d-20ccd487ff05/batch-file-to-install-printer?forum=ITCG
    As you want to use the batch file to install printer, to receive better support, it is recommended to post in the TechNet script forum.
    The professionals there will be glad to help you.
    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/home?forum=ITCG
    Thanks for your understanding.
    Best regards,
    Fangzhou CHEN
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Problem in making exe file for java application

    helo,
    i tried to make an windows installer packge for my jar file using advance installer. There is one option for including JRE with this package. i included jre package also.otherwise ,the applicaiton will not work in client side,if java is not installed in his system.
    But the problem is after i make the setup including JRE ,the size of the file become 26mb. So,it took long time to download the application.
    What are the essential jav files we have to include while makes the setup for running the application.I included all the JRE folder itself.
    So the size become heavy. Anybody plz help me solve this
    regards
    jithesh

    Hello, I have the same problem, did you solved it?
    Thanks

  • How to download the exe file, rather then installing

        hi, as my working pc has very low internet connectivity, how can i download and take this installable file to my pc? because when ever i click on download flash builder 4.7 trail it starts installing rather then downloading and getting saved in some location.. please help me

    How to create the exe file for java project.Have you ever heard of google? I pasted your exact "question" into a google search:
    http://www.google.com/search?q=How+to+create+the+exe+file+for+java+project.
    and got several useful links.
    Better search terms might yield even better results.
    Sheesh.

Maybe you are looking for