my dog learned polymorphism*
The moose likes Beginning Java and the fly likes Executable files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Executable files" Watch "Executable files" New topic
Author

Executable files

David Maddox
Greenhorn

Joined: Feb 25, 2004
Posts: 12
Ok. I have just written a program but every time i want to run one i have to do it through command prompt by typing all the like " java whatever" Is there some way i can make a java file where all i have to do is double click it and it runs? I mean like turn a Java file into an exe file. I tried jars but they dont double click
[ February 26, 2004: Message edited by: David Maddox ]
miguel lisboa
Ranch Hand

Joined: Feb 08, 2004
Posts: 1281
yes
use a jar file
read this:
http://java.sun.com/docs/books/tutorial/jar/basics/build.html


java amateur
David Maddox
Greenhorn

Joined: Feb 25, 2004
Posts: 12
i read the page, but it does not explain how to run a jar file from outside of the command line. If i want to give a program to afriend but he doesnt have the compiler(so he doesnt have the jar flag) how would i do it?
 
Don't get me started about those stupid light bulbs.
 
subject: Executable files