wood burning stoves 2.0*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java exe application files" Watch "Java exe application files" New topic
Author

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?


SCJP, SCJD
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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:
http://nsis.sourceforge.net/Docs/Chapter1.html
http://www.nullsoft.com/free/nsis/makensis.htm

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 (www.jphotobrushpro.com)
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
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
 
Consider Paul's rocket mass heater.
 
subject: Java exe application files