Results 1 to 4 of 4

Thread: How can I convert my java program to an .exe file?

  1. #1
    Join Date
    Feb 2009
    Posts
    4

    How can I convert my java program to an .exe file?

    Hi,

    How can I convert my java program to an .exe file ?

    What is the best way for doing this?

  2. #2
    Join Date
    May 2008
    Posts
    44

    Re: How can I convert my java program to an .exe file ?

    The standard Java development kit (JDK) supplied by Sun does not provide a tool to create platform specific executables (This is not suprising really). However, you do have a number of options to choose from that will help you get this done.

    Third-party tools

    One option is to use a third-party commercial or free tool to package your Java application as an executable file.

    Use .jar
    As an alternative, you may want to bundle your application as an executable .jar file instead of a .exe file.

    The essential thing you need to do is indicate which class within the .jar file is your application's entry point. For example, the bootstrap class for your application with a public static void main(String[] args) method. You can provide this information with the Main-Class header in the .jar manifest file. This header has the general form: Main-Class: classname ,where the value classname is the name of the class that is your application's entry point.

    Use Java Webstart.

    Java Webstart is one of the hidden gems of the standard Java runtime environment (JRE), and has been included with the JRE since version 1.3. It is a simple, but powerful and flexible way of deploying applications to any platform.

    Webstart allows users of your application to launch and manage the application from their browser, e-mail or desktop. One of the key advantages of Java Webstart is that once the application is installed, everytime you start it, it will check to see if the user is running the latest version of the application. If not, the app will load and execute a new version over the network to the desktop and thus eradicates software currency issues.

    This is particularly important if you have many users of your application. Importantly it also checks the local desktop environment of the user and will ensure that they have the appropriate version of the JRE installed to run your application.

  3. #3
    Join Date
    May 2008
    Posts
    2,302

    Re: How can I convert my java program to an .exe file ?

    In java, we also can create executable file like in vb6...but it's file extension is not .exe...it's extension is .jar....we can run it by double click on it like we run .exe file

    HOW TO CREATE JAR USING COMMAND PROMPT :
    http://www.youtube.com/watch?v=vK-gYDtsr58

    FROM JAR TO EXE :
    http://www.youtube.com/watch?v=CMEmT9lnb9w

    EASIEST WAY HOW TO CREATE JAR FILE ( JAVA EXECUTABLE FILE ):
    http://www.youtube.com/watch?v=kBzEHKXly0k

  4. #4
    Join Date
    Oct 2005
    Posts
    2,394

    Re: How can I convert my java program to an .exe file ?

    For more understanding please refer to these topics:

    http://www.javalobby.org/articles/java2exe/

    http://www.excelsior-usa.com/articles/java-to-exe.html.

    I hope this helps you!

Similar Threads

  1. Convert C++ Program to Java Code!! Please help
    By jessesaini in forum Software Development
    Replies: 1
    Last Post: 24-04-2012, 12:24 AM
  2. Nokia E71 doesn’t supporting JAR File, java program, smartphone
    By Eric Banadinovich in forum Portable Devices
    Replies: 3
    Last Post: 10-04-2011, 01:58 PM
  3. Need help to convert c++ to java code program
    By xSim21 in forum Software Development
    Replies: 2
    Last Post: 27-11-2010, 03:42 PM
  4. convert C++ program in Java code
    By vaibhavsri in forum Software Development
    Replies: 7
    Last Post: 16-07-2010, 10:08 AM
  5. How to write string data to file using java program?
    By Linoo in forum Software Development
    Replies: 5
    Last Post: 21-01-2010, 08:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •