473,508 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to create .exe file in java

1 New Member
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 2381
Dököll
2,364 Recognized Expert Top Contributor
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 Recognized Expert Contributor
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
3644
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
2611
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
3535
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
2174
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
1938
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
1974
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
2792
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
4441
by: henrymania | last post by:
Am writing a code for database backup....by backupservlet is as given below i get the following exception
3
1770
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
3712
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
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7383
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...
0
7498
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
766
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.