Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make exe file?

 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Pie
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Stefan Wagner
Ranch Hand
Posts: 1923
Linux Postgres Database Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Yatin Shah
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 657
Clojure Spring VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3061
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep Kadambar
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic