Creating .exe files

how do you convert a set of .class files into one windows exe file... doing this will ensure that your code runs on all windows computers regardless of what version jdk they have right??

This is a common question. The answer is: you don't want to. Honestly. I know you think you do but you don't. What you actually want to do is create an executable jar file, and if you want a nice icon on it create a shortcut and make the shortcut have an icon.
If you REALLY have a good reason for creating an exe look here:
http://forum.java.sun.com/thread.jspa?threadID=468082&messageID=2155709
... where it's already been discussed.
There are nicer solutions to distibuting your java, but you'll need to do some research. Try googling for:
java native wrapper
jlauncher
distribute java applications

Similar Messages

  • Getting error while creating exe file from my VI.

    Hi,
    I am trying to build the exe file of my VI. I tried to follow the instructions in Help ( Example: Building a
    Stand-Alone Application) but instead of creating exe file, it is creating folder containing my all VI and VI from Application Builder.
    Kindly Help me.
    Thanks and Regards,

    It sounds like you might have accidentally selected to create a source distribution instead of an application. That's different from an application. A source distribution basically makes a copy of your VIs into another location so that others can use them for VIs they create. When you expand the Build Specifications tree the icons indicate what kind of build you're creating. An applicaiton has an icon that looks like a tiny window with a title bar. A source distribution has an icon that looks like a folder with the Add function in the upper right:
    Attachments:
    app vs source.PNG ‏3 KB

  • Create .exe file for core java project

    how can i create .exe file or wrapper for my core java project

    cotton.m wrote:
    To be honest with you this is going to be very difficult at best.
    And I'm not sure it's entirely realistic or legal. You'll need to install Tomcat and MySQL and all your stuff...Haven't ever tried doing so, but I think it might be quite possible sollution...
    There's a preconfigured version of Tomcat, that you simply unzip on the drive (so there's no nned of running installator).
    If OP would use some MySQL server's clone, that needs no installation (some time ago i was looking for thing like thatand found couple of those).
    All configuration (installing services etc.) as well as copying JSPs and other stuff to Tomcat dirs can be made with script files (.bat or whatever) or under another java application that will run all the commands...
    As cotton.m wrote... if it works, it's going to be hell lot of work...

  • How to create .exe file of the java program you create?

    This must be the qustions asked several time on the forums.So here it is again.
    This sounds absurd to some developers here cause you'll say just create jar file and distributre to usr but sometimes there is not possiblity of having runtime environment in windows computers.So if we can bundle the enviroment and the setup together then packing into exe and then distribute like most of commercial java application sounds better.But the problem is how to do that?
    Ok creating exe will increase the size but that doesn't matter,if there is any freeware tool to accomplish just that?

    Check this out:
    http://search.java.sun.com/search/java/index.jsp?qp=%2B
    orum%3A31&nh=10&qt=create+exe+file+program&col=javaforu
    s

  • Creating .exe file

    Hello
    Is there any method by which I can create an exe file for distribution of my application. The current method for distribution is to make a jar file and then to run it using java -jar option. But it is a bit difficult for a novice user. If someone can help me out and tell me a method for creating exe file for my project.

    I found Jet pretty much unusable for larger applications
    The compiler it uses is buggy, and doesn't manage memory well at all, leading to frequent unrecoverable crashes. and it's SLOW
    Far easier to download a java launcher application, there are several available, or fork out for InstallShield for Java for example.
    McF

  • Creating exe file for fmx file

    can anyone tell me that how can I convert my form developer in oracle forms 6i from fmx to exe format ?

    Alissa , u have to be reasonable , no way to create exe file from Oracle Forms .
    and if it's like this no need for reports,forms run time files !!!
    null

  • Create exe file in forte?

    I am new in Forte. looking for some help to create an exe file from my java class file, so I can run the program by running the exe file.
    any help would be appreciated.

    First sorry for my English.
    Second, from Forte no way as far I know. However there is lot of better or worse and rather expensive programs on I net that could do it.
    Use Google with Java to exe, java native ... it should give some insight to You.
    I would rather recomend to use *.bat files - if you can use Windows.
    It is worth of notice that java-exe COULD be slower than JVM. And one more thing. exe files are longer than packed class files.
    So if you are new I do not recomend you idea. There are sometimes need for java-exe files, but that are rather specifical cases....
    If you are still interested, try visual cofee, visual age, or GJC.

  • Embed the JRE while creating exe file

    I am using jar2exe software to create the exe file from the jar file. The exe is created successfully using this software. However it requires the JRE should be present on the machine where we are going to install the software.
    Is there any body who knows how to embed the JRE while creating the exe so that there should not be any need to have the JRE on the machine?
    Is there any other approach by which we can create the exe file from the jar and JRE should be there in the exe file?
    Thank you.

    All jar2exe does is use a JNI (C to java) wrapper around your call. That means a VM is still required.
    The Sun VM at least requires a number of shared libraries and jar files to run. The shared libraries must either be in the file system or already loaded into the application.
    You could put those as a resource into the shared library but you would then need to figure out, via OS calls (not java) how to load them.
    Is there any other approach by which we can create the exe file from the jar and JRE should be there in the exe file?Options
    1. Find another tool besides jar2exe
    2. Install the VM - it need only be in the exe directory.
    3. Forget the exe idea and just use java.
    4. Figure out, which might be impossible, how to load the shared libraries and jars as resources from the exe. Again this is NOT something you can do in java.

  • How to create exe file

    In one of my project, I need to create an exe file that can call swing application. I know this can be done is C++. ANy idea or suggestion to achieve this using java.
    regards,
    Ranjan

    It is a normal text file u can use notepad to create it and save with mft extention
    Sample.mft
    Main-Class: Sample
    Sample.java
    import javax.swing.*;
    public class Sample extends JFrame
          public Sample(){
                 super("Sample");
          public static void main(String args[]){
                 Sample s = new Sample();
                 s.setSize(400,400);
                 s.setVisible(true);
    Command
    jar -cmf Sample.mft *.class

  • Creating exe files from java files

    Hi all.
    I've created a Java GUI file and I want to create an exe file of it, so i can just double click on the icon and opens up..
    Anyway as to how i could do this?
    Hope to hear from anyone. Would be a great help
    Kind Regards,
    Raheal

    http://forum.java.sun.com/thread.jspa?messageID=9783924

  • How do you create *.exe files using Labview6.0

    I shall be grateful if anyone can give me the following info or direct me as to where i can find it..
    (a) What is the procedure of creating executable files using labview6.0
    (b) Do i require any other components other than the labview base package.

    In addition to previous post,
    a) after buying Application Builder (which is included only in LV6i Professional Package), you'll notice a new entry in LV Tools menu (Build Application or Shared Library[DLL]). This opens App Builder (a panel where you can setup many parameters for the VI/LLB to 'build'). It's not complicated and you can use default values for the first try (after selecting your VI)
    b) here is the link to start with App Builder [http://sine.ni.com/apps/we/nioc.vp?lang=US&pc=mn&cid=2448]

  • Please help me to create .exe file for my VI.. thanks in million

    Dear all,
    The software I have is LV6.1 full version, so I cant make .exe file.
    Can someone help me to crate .exe file for the attach library thanks.
    I need it for my presentation and the skol PC dont have LV.
    if the file is big, pls send to [email protected]
    thanks in million.
    maymaythar
    When you feel sad, laugh
    Attachments:
    voltage regulator analysis.llb ‏687 KB

    As has been mentioned, you need LabVIEW professional or higher. (If you only have base or full, you need to buy the application builder extra).
    Building an application is as easy as selecting "tools...built application or shared library", and specify the desired source VIs, built settings and installer settings.
    All diagrams and unneeded front panels are removed. The process is thus irreversible and you cannot recreate the original VIs from the application.
    LabVIEW Champion . Do more with less code and in less time .

  • How to create .exe files in CRX/Compiled Report

    Hello
    I am running CRX and we use Control M to schedule reports.  According to the company's website, you can create a .EXE and run it on the Windows Command prompt.
    The problem is (as you will see below), there's no REPORT, COMPILED REPORT functionality in CRX.  Evidently, this has changed. 
    To create a Compile Report within Crystal, go into Crystal Reports and open a report,  from the menu select REPORT | COMPILED REPORT.  The Compile Report dialog box will be displayed.  You have the option to rename the report name.  By default, Crystal Reports uses the report name and changes the file extension from .RPT to .EXE.
    Can anyone assist with this?
    Thanks.
    ps

    You are correct, this functionality [no longer exists|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313334333833333338%7D.do]. You could install the free [Crystal Reports Viewer|http://www.businessobjects.com/product/catalog/crystalreports_viewer/], or create your own .exe which displays a Crystal Report with the [SDK|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm].
    Cheers,
    Fritz

  • How to create .exe files from Java class files?

    I'm new to Java and I just wonder if it is possible to make executable files out of Java class files. I've checked the Java online help and several search engines, but I still couldn't find anything about that. Is it possible to do so? If not, why not?
    Thanx a lot for any help.

    I don't remember if there is a program that converts the class file,
    but I do know that there are a few that either convert the class file,
    or the .java file. You might try searching for ".java to .exe" in the
    search engine and seeing what that pulls up.

  • Creating exe file in java

    hello world,
    i have created a desktop application in Java Swing... but everytime i need to compile and run the application to see how my program is doing... i want to know what should i do so that by double clicking on the icon on the desktop i will be able to rum the program directly without compiling again and again
    Thank you

    Package all your .class files in a .jar file.
    The process is described in detail in Sun's Tutorial here:
    http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

Maybe you are looking for