473,386 Members | 1,798 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to create .exe file in java

I was created a software using frame so i want to create a executable file for the software.please tell me how to craete a .exe file for the java software?
Oct 18 '09 #1
2 2376
Dököll
2,364 Expert 2GB
You will need a .WAR file for certain Windows Apps, .WAR or .EAR should do the trick most ofthe time for either that or Web Apps. Please forgive me I am not aware of .exe files for Java Apps.

Good luck!
Nov 9 '09 #2
chaarmann
785 Expert 512MB
The *.exe file is only machine language for dos/windows and can only run there. But Java runs on all operating systems, so it's using an intermediate code (which will be processed by the JVM and JIT). In the old days we used Symantec Visual Cafe to compile Java programs directly in machine language (.exe) or used MS Visual J++, but gladly these days are over, you don't need to do it anymore! JIT-compilers are so fast nowadays that portability is more important.

To distibute or run your java program as only one file, you don't need an *.exe. You can make a single *.jar file from all your classes.
So you can double-click the *.jar and it runs like an *.exe (if you have not modified the file associations, for example to open it with WinZip)!
To run it in this case, just create an icon (or a *.bat text file) with the command inside
Expand|Select|Wrap|Line Numbers
  1. java -jar myApp.jar
Or more precisely, and also if you do not like console window (you wrote that your program already has a frame):
Expand|Select|Wrap|Line Numbers
  1. C:\Programs\myJavaInstallationFolder\bin\javaw.exe -jar "C:\Programs\myAppFolder\myApp.jar"
Nov 9 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Jagdeesh | last post by:
Hai Colleagues, I am using Tomcat 4.1.24 and JDK 1.4.0_03 in my winXP machine. I've transferred a set of folders(containing jsp files) into tomcat's webapps directory(to /webapps/bob ,...
1
by: D. Lee Christopher | last post by:
Can anyone point me to a good tutorial for creating a site-level search applet? I am trying to create a virtual catalog of sorts, and I would like to be able to search the catalog and have the...
9
by: Albretch | last post by:
.. I am trying to create a database in a MS Access DB via JDBC drivers. I have tried both sun.jdbc.odbc.JdbcOdbcDriver and ids.sql.IDSDriver From some reason both drivers Exceptions tell me...
3
by: Dhananjayan | last post by:
Hi, I have a java webservice running on Axis, Iam able to create a java client to invoke the webservice and obtain the result. But iam not able to invoke the service from .Net client.. Here are...
0
by: gopikrishnan | last post by:
Hi to all, i am developing a java project which workes in linux. I need to create a Word document through my java program, rep_path = --FIlePath-- fso = new File(rep_path); if (!...
0
by: Husey | last post by:
Hi, I am trying to create a very simple EJB project which requires me to create a new jboss configuration in Eclipse. I keep getting the error message "An error has occurred. See error log for...
4
by: Benny Dein | last post by:
Hi I want to create a servlet or something similar by which im able to create virtual webservices. Lets say i would like to create a webservice with a method called 'getDate' which returnes...
1
by: henrymania | last post by:
Am writing a code for database backup....by backupservlet is as given below i get the following exception
3
by: fazilhussain | last post by:
i tried to create an object of a class created with a different file and it worked. But when i try to create the object after packaging it didnt compile. why is that? pls if u know the correct reason...
0
by: TrevRex | last post by:
Hello, I work for a non-profit in San Diego as a GIS Specialist. I have had to teach myself about some scripting to create some dynamic maps, but I am still very limited in my skills, so I have...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.