Java as an exe file???

Hi,
can a java file be converted to an exe file so that the user doesnt have to run it via: java filename?
rick

Yes, Jar files, or Web Start
This question is asked a lot, a quick search will give you many answers.
Like:
http://java.sun.com/docs/books/tutorial/jar/index.html
http://java.sun.com/products/javawebstart/

Similar Messages

  • Java code to exe-file

    Hi!
    I hope someone can help me with this.
    I have done a program in Java-code and now I want to convert that code into an executable file that can be run on most computers. I have tried to convert the code to a JAR-file and then, using the program JSmooth, transform it into a exe-file. But, sad to say...it failed. Is JSmooth the way to do it or is there another better way?
    Hope to get an answer.. :)
    / Berenur

    add a Main-Class: yourclass line to a manifest file, and specify your manifest when you create the jar.
    I.e.
    Manifest-Version: 1.4
    Main-Class: myClassSave that to manifest.mf or something like that.
    Then,
    jar -cvfm MyJar.jar manifest.mf [all files to include in jar]
    done.

  • How to turn a Java Application an .exe file?

    Hello, I'am just above new commer in Java world. I was wondering if anyone could help me. I just developed an application in java, how can I turn it into exe file? is there a way I can run this application without the "Command" promt (window) running?
    Pls. help my email address is "[email protected]"
    Any assistance will be largely appreciated.

    you can try the J++ compiler provided with the JBuilder from Microsoft but this is just compiling the java to C++. to create a standalone exe is as far as I know impossible. U can try to use a jar-archive (create with the sdk) and if a Java Virtual Machine is installed (normally with every popular web-browser) it will run with a doubleclick

  • I wan to converte java prog. to exe file

    hi to all
    i have program in java and i use netbeans 6 ( GUI)
    how can i convert this to exe file ??
    plz help me because i use JAR file but i cant doit
    thanx

    I don't NetBeanz, but it's always best to learn from the command line: http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

  • Convert Java Project to exe file

    Helloz everyone,
    I have completed a java project. Now I have to convert it in exe file for windows.
    Can u please guide me. I can use any third party tool.
    But I want that it can be installed on any computer whenever double clicked and it make a icon. Whenever user click on that icon then it run the application.
    Thanks in advance.
    ViVeK

    Your jar command appears to be incomplete; it should lookk about like this:
    jar cvmf0 manifest_file MyJar.jar MyPackage/MyClass.class MyPackage/MyClass.gif MyPackage/MyClass.txt MyPackage/MyClass.html
    The 'm' in the command represents the manifest file. The 'f' represents the jarfile name. These can be reversed in order, but must be reversed respectively - that is, if the 'f' comes before the 'm', then the MyJar.jar needs to come before the manifest_file.
    The contents of the manifest needs - in the simplest cases - to look like this:
    Line 1. Main-Class: MyPackage.MyClass
    Line 2.
    Note please the Line x. do not appear; however the line 2 must exist and must be empty. IOW, a carrage return must exist at the end of line 1.
    Note too that the MyPackage part is optional. It's there if you have a specifically named package.
    Note lastly that you may not have .gif, .txt, etc files to add to your jarfile.

  • Change java application to exe file

    I want to change the java application(*.class)to the exe file in WIN OS in order to update its speed, can anyone tell me some useful infomation? thanx in advance.
    Holly

    I have been using VAJ for several months now and I have not found the option to compile a native executable. Its help system is the worst I can recall ever seeing. So can you tell me exactly how to do that with VAJ?

  • Compiling JAVA into Windows .exe files

    Hi,
    Here's an easy question - how do you compile JAVA source into Windows .exe files (as opposed to class files with bytecode in them). I imagine there is a third-party product out there somewhere?

    A Bayesian network is a mathematical representation of logical inference.
    A very simple example has two nodes: "has tail" and "is horse", connected by a single link. If we know "is horse" is true, then it nearly always follows that "has tail" is also true. This is called modus ponens in logic. If we know "has tail" is true, then "is horse" might be true, but it might not. To infer that "is horse" is true in such a case is to commit what is called the fallacy of affirming the consequent, in logic. However, using Bayes' theorem, which would require that we know some general information about the prevelance of horses among tailed animals, and the general prevalence of horses among things in general, we can measure the exact increase in the probability that "is horse" is true that results from our knowing "has tail" to be true.
    For more information, see http://www.bayesian.org
    The classic book on the subject is Judea Pearl, Probabilistic Reasoning in Intelligent Systems.

  • Converting java to an exe file

    Hi
    Is there any way i can convert my java app into an exe file?
    That can be run just by double clicking it?
    Thanks

    Do you see that search box on the left?
    <--- That left!
    We had so many threads about that topic.
    * Search before Posting: Especially if you are in a hurry, you may find that the question has already been asked and answered during the long history of the Forums.
    * Know the basics: Read this FAQ and the basic trails of the Java Tutorial (like Getting Started or Learning the Java Language). If you don't understand the question you are posing, you may not understand the answers.
    * Be thorough and precise: Proofread your question before posting. Describe the steps that you have taken. The more effort you put into researching and describing your problem, the more likely you will get a sincere effort in return.
    * Post a subject line that describes the problem: Experts in your subject may skim right past subject lines like "Urgent" and "Need help ASAP". Use keywords about the technologies instead.
    * Post once and in the right area: Multiple postings are discouraged, because they make the category lists longer and create more email traffic for developers who have placed watches on multiple categories. Because of this, duplicate posts are considered a waste of time and an annoyance to many community members, that is, the people who might help you.
    * Post a problem, not an assignment: Break your assignment down into specific problems that you can ask for help with. Dorm hall lounges may be a better resource if you have a last minute, "urgent" demand for solutions to homework problems.
    * Answer questions as well as asking: You can learn by doing as well as gain respect in the community by being a full participant.
    From the forum FAQ

  • What tools can change Java application to .exe file(for Windows)?

    Thanks.

    would appreciate if u try searching the forum first
    this is one of the most frequently asked questions here
    i have used the suggestions here and found that it works
    regards

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

  • How to execute a .exe file in java(Jsp) without using a process ???

    Hi All ,
    How to execute a .exe file in Jsp without using a process ??? ...
    Is it Possiable ????

    itsdhanasaraa wrote:
    But as this a web application ... By using Runtime i'm getting some probs ..
    Let me guess, you want your web application to run a program on the client and to your surprise that's not working?
    Ain't gonna happen.
    its taking more time to execute .... that's y is there any other option to execute .exe file other than Runtime.getRuntime().exec("filename");Write proper English and you may be taken more seriously.
    1) it's not "taking more time to execute", whatever that's supposed to mean.
    2) there's no other way to execute something. Not that you should every use even that way anyway
    3) whenever you start thinking of executing external programs from Java, start thinking of not using Java in the first place.

  • Through Java code I want to execute a exe file which is in aJar file

    I am having some classes and an exe file in a directory. I have made them in to a Jar file. In a class file which is in that jar file i want to execute a Exe file which is also resides in that jar file. Is it possible to exexute that EXE file?
    For Example....
    1. Im having a directory named CLIENT.
    2. In that directory I have 10 clss files and an EXE file.
    3. These class files and EXE files are ziped in to a Jar file.
    4. I have to give the Jar file to my client.
    5. He can put that Jar file where ever he installed my product may be C driver or D drive like that
    Now the problem is...
    I want to execute the Exe File from one of the class where both the exe file and class file resides in the Jar file
    This is my requirment
    Can anyone Help to me to solve this problem?
    Thanks in Advancd
    Ibram Shah.A.M
    ([email protected])

    The answer is to extract the EXE into a temp directory, execute it, and delete it when you're done. For example:
    //This is the path *inside* the JAR file!
    InputStream in = getClass().getResourceAsStream("/resources/myprog.exe");
    OutputStream out = new FileOutputStream("myprog.exe");
    File file = new File("myprog.exe");
    int data;
    while((data = in.read()) >= 0) out.write(data);
    in.close();
    out.close();
    //Execute the EXE here using java.lang.Runtime.exec()
    if(file.exists()) file.delete();
    ...

  • How do I bundle my .java file as an .exe file to install from cd-rom

    I have written a simple java application that I would like to lauch from cd-rom. I would like it to do the following:
    1)Install the application to be ran locally on a client machine.
    -OR-
    2)Run the application from the cd-rom.
    I think my code would have to be bundled and stored as an .exe file, but I'm not sure. I can not find any info on how to do this, so any direction would be greatly appreciated. Please explain in detail if you can, I am still new to this. Thanks!

    1) I was able to use InstallAnywhere to create an installer for my application, but I was unaware that there was a java InstallShield. How do I access this feature?
    2) Also from my understanding, I will have to write an executable java launcher in another language. Where can I find more info on this topic?
    3) Not sure how to create jar files just yet. Where can I find more info on creating executable jar files.
    Thanks for your help!!!!!!!

  • Creation of exe file in java

    Hello friends,
    I am new to this forum. I want to know how to create an exe file in java. Is it possible to continue executing a jar file without java run time?

    Are you sure you want to do this?
    What is your reason for wanting no JRE? If it is speed then you will not get any.
    Would packaging the JRE + application in a single installer be acceptable?
    The guys at JET (a maker of a Java to native compiler) have written a good overview of your options.
    http://www.javalobby.org/articles/java2exe/

  • What is the repalcement of .exe file in Java  ??

    What is the repalcement of .exe file in Java .
    i want to launch my java code in .exe fashion just clickk and u get output.....
    but as far i have seen in java there is only class file as output and every time to
    launch the output of code u have to run it from netbean compiler.
    Ya i have sen some file with jnlp extension which launch application just by clicking how to make that........

    What is the repalcement of .exe file in Java .Though there is no replacement as it would defy java's claim 'write once run anywhere' (or whatever it is) but jars are as good as exes if you have jre installed....
    i want to launch my java code in .exe fashion just clickk and u get output.....try :
    [http://www.ej-technologies.com/products/exe4j/overview.html]
    [http://www.ej-technologies.com/products/install4j/overview.html]
    but as far i have seen in java there is only class file as output and every time to
    launch the output of code u have to run it from netbean compiler.who says so?? don't you know how to use the command line..... :-)
    Ya i have sen some file with jnlp extension which launch application just by clicking how to make that........Yeah that files are made using Java Web Start feature of java and I like that feature, search on Google to know about it..........

Maybe you are looking for

  • Decimal places in Purchase orders

    Hello, currently, when typing in the unit price in a purchase order, we can only use 2 decimal places. We need to be able to use 4 decimal places for materials such as paper, which we buy at 0,028 € (example). Can this be modified through customizing

  • Do You Need QT To View YouTube HD Videos??

    When viewing a regular youtube video, the file plays as a flash (.flv) native to the browser. Meaning, you do NOT need QuickTime, or any QT codec to view it. Youtube HD functions differently, that file is a QT (.mp4). My Question is .... when viewing

  • Problem sending files

    Hello! I'm trying to send a music file that I made to a friend of mine. I am able to send songs to one of my friends no problem, but for some reason I can't seem to send it with any others. I have File Sharing on and my Firewall allows it. I'm assumi

  • Install Creative Cloud to a different drive

    Hi, I am trying to install creative cloud to my D Drive Rather than my SSD drive but I can't find the option to change the install location. I am running Windows 7 64bit. Thanks

  • Basic Replication doc in 10g Database..

    Hi, as the 10g Database Standard Edition supports the basic not the advanced replication ... where can i find some docs about basic replication...???? Thanks, Simon