Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Register Tags Active Topics RSS Search Mark Forums Read

Sponsored Links



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

Software Development


Reply
 
Thread Tools Search this Thread
  #1  
Old 02-03-2009
Member
 
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?

Reply With Quote
  #2  
Old 02-03-2009
Member
 
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.
Reply With Quote
  #3  
Old 02-03-2009
Member
 
Join Date: May 2008
Posts: 2,286
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
Reply With Quote
  #4  
Old 02-03-2009
Member
 
Join Date: Oct 2005
Posts: 2,387
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!
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


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


All times are GMT +5.5. The time now is 07:05 PM.