• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java exe application files

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 3178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic