Creating EXE in Java

It is possible to create .EXE files in Java?Thanx
[63 byte] By [Kanona] at [2007-10-2 17:24:59]
# 1
A question asked more than 1000 times.Just use the search function.No you can't make exe files but you can make jar files and search googleon how to run jar files.The man with blues
lupansanseia at 2007-7-13 18:41:19 > top of Java-index,Java Essentials,Java Programming...
# 2

Java does not produce .exe files. The are various (Windows specific)

tools that do - compilers - but javac isn't one of them.

If you mean the question more generally: "How do I create files that the

user can run by double clicking them, or typing their name at a

command prompt?", then the usual method is to create a .jar file.

In Windows double clicking a .jar file usually results in javaw being run

with the .jar file as its only argument. The application contained in the

.jar file then runs.

Creating .jar files - complete with lots of examples - is covered in Sun's

Tutorial here: http://java.sun.com/docs/books/tutorial/deployment/jar/index.html

(Like any document or executable a java applcation can be launched

from a .bat or .cmd file, but if you don't actually need the fine control that

these offer, .jar files are the way to go.)

pbrockway2a at 2007-7-13 18:41:19 > top of Java-index,Java Essentials,Java Programming...