• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java exe application files

 
Kevin Knowles
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Marshal
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tanveer Rameez
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ko Ko Naing
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic