Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executable files

 
David Maddox
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes
use a jar file
read this:
http://java.sun.com/docs/books/tutorial/jar/basics/build.html
 
David Maddox
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic