wood burning stoves 2.0*
The moose likes Java in General and the fly likes How to make exe file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "How to make exe file?" Watch "How to make exe file?" New topic
Author

How to make exe file?

Yatin Shah
Ranch Hand

Joined: Sep 11, 2004
Posts: 72
Hi,

I am developing my project with RMI. My project is Server monitoring System. I did my project. But I want to do EXE filr so any one can run double clicking on it.
Any one can help me hoe can I do?

Thanking You
Yatin.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42053
    
  64
Assuming you're running on Windows, a .BAT file is probably easiest. Put the command line you use to start your program in there, something like
java -classpath ... MyProgram parameters ....
Double-clicking a BAT file will run it.


Ping & DNS - my free Android networking tools app
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

double-clicking a jar file will run it too, if java is installed properly.

100 times answered in the intermediate and beginner section.
[ July 25, 2005: Message edited by: Stefan Wagner ]

http://home.arcor.de/hirnstrom/bewerbung
Yatin Shah
Ranch Hand

Joined: Sep 11, 2004
Posts: 72
Hi,

I tried with jar file to run double ckicking on it. but it's not working. Is it possible for U to explain in details.

Thanking You,
Steve Morrow
Ranch Hand

Joined: May 22, 2003
Posts: 657

I tried with jar file to run double ckicking on it. but it's not working. Is it possible for U to explain in details.
You'll need to ensure that JAR files are associated with the Java executable through Windows Explorer.

Don't know how? Follow me...
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
Originally posted by Steve Morrow:
You'll need to ensure that JAR files are associated with the Java executable through Windows Explorer.

Don't know how? Follow me...


There's a little more to it than that. You also need to make sure your JAR file is executable. To see how to do this, check out this thread. As mentioned above, this question has been asked a billion times here before. For future reference, you should use the Search Tool to see if someone has already posted your question previously. Be sure to search the "Java in General (beginner)" and "Java in General (intermediate)" forums as well as this one.

Layne


Java API Documentation
The Java Tutorial
Pradeep Kadambar
Ranch Hand

Joined: Oct 18, 2004
Posts: 148
This topic has been discussed under making executable JARs as well as Creating exe's using opensource tools.

Please do some searching before blindly posting it.

:roll:
Dean Fredericks
Ranch Hand

Joined: Dec 04, 2004
Posts: 60
I see you are using JBuilderX.

You are in luck, with JBuilderX Enterprise or Developer edition, you can create native exicutabls. You can find the option somewhere in the tool bar along witht the options to create jars and things.

JBuilder will then create a native exe file that you can just click on and run - you dont even need java installed on the pc.


PLEASE WATCH THIS VIDEO: <a href="http://www.glumbert.com/media/dolphin" target="_blank" rel="nofollow">http://www.glumbert.com/media/dolphin</a><br /> <br /><-- that video is no joke. Spread the word... this cant go on!!!<br /> <br />SCJP 1.4, SCBCD 1.3, SCWCD 1.4, SCMAD 1.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to make exe file?