This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Java in General and the fly likes Java exe application files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java exe application files" Watch "Java exe application files" New topic

Java exe application files

Kevin Knowles
Ranch Hand

Joined: Dec 29, 2002
Posts: 45
I have a java program that came with a book I purchased. The program consists of an *.exe file and many class files. None of the class files contain the equations used in the program, so I suppose those are in the exe file. My past experience with Java was that you don't create .exe files. If I am wrong and you can create exe files with Java, will someone please explain how that is done?
Yevgeniy Treyvus
Ranch Hand

Joined: Mar 09, 2005
Posts: 48
No, in Java you cannot create a .exe file. You can create executable jar files, but those do not apply in this case. Perhaps, the equations are very slow and had to written in C/C++ and are called natively by the Java program?

Ernest Friedman-Hill
author and iconoclast

Joined: Jul 08, 2003
Posts: 24199

There are many commercial tools which will package up your classes together with a (possibly customized or stripped-down) JVM and turn the whole thing into a Windows *.exe file.

[Jess in Action][AskingGoodQuestions]
Tanveer Rameez
Ranch Hand

Joined: Dec 11, 2000
Posts: 158
NSIS is a good program through which one can not only create executables but also installers. I used it to make installers for my java program and wrap my executable jar file in a exe file. and its FREE!!!
check this 2 link:

You will need to read how to write the scripts, but that's not so hard.
[ March 15, 2005: Message edited by: Tanveer Rameez ]

Author of JPhotoBrush Pro (
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Kevin, if you are using JBuilder, then JBuilder has a exe creation wizard so that you can create the native executables(windows exe, solaris, linux and mac) from a given jar file on-the-fly... It is very easy to use JBuilder to do that...

Hope this helps...

Co-author of SCMAD Exam Guide, Author of JMADPlus
I agree. Here's the link:
subject: Java exe application files
It's not a secret anymore!