• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make executable program in java ?

 
naved momin
Ranch Hand
Posts: 692
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Manuel Petermann
Ranch Hand
Posts: 177
Hibernate Linux Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24211
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic