This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Java in General and the fly likes how to make executable program in java ? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "how to make executable program in java ?" Watch "how to make executable program in java ?" New topic
Author

how to make executable program in java ?

naved momin
Ranch Hand

Joined: Jul 03, 2011
Posts: 675

can any one tell me how to make a executable file after completing java application i have make jar file but the when i checked those files they were actually a rar files which is runniing from command line not by double click , so how to make executable file so that by double clicking on it we can run it .

The Only way to learn is ...........do!
Visit my blog http://inaved-momin.blogspot.com/
Manuel Petermann
Ranch Hand

Joined: Jul 19, 2011
Posts: 175

1. Which operation system are we talking about?
2. If you made an executable jar file and the mentioned behavior still exists something is not as it should be. In your case your rar packer might be the problem.
3. First link I found with google


Please correct my English.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24081
    
  15

First, jar files aren't RAR files, they're ZIP files -- not that it matters, really.

Just use your desktop (i.e., Windows) to associate the application "javaw" (javaw.exe) with files of type *.jar; then you can double-click on a jar file to execute it.


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: how to make executable program in java ?
 
Similar Threads
Making Executable File
Java executable
Running a java program
can i make a program which start by double click like window application
Java executable file