You can't 'make' any Java program executable, at least not in the C/C++/.NET compiled sense. The java.exe application is the launcher for the JVM and will start your Java application... there is no other executable. Java code is converted to native commands by a Just in Time (JIT) compiler at run time.I went to the java jre 1.5 directory and i saw a "java.exe" but i still am unclear on how to make my program executable.
Originally posted by Keenan Staffieri:
Ok, thank you that worked perfectly and its beutiful.
But I have a long term question for you, before i let all of you go!
Ok, how would I make this so other people could download it and be able to just simply double click on something and the program would run? Kinda like an executable shortcut but for java...
Also another question about path and letting people download it. Ok, if you have sounds,pictures,sprites,ect, that are used by the program in the classes directly, does java automaticcaly "pack" all of those things from the classes folder for other peoples do download? Or must they be included like I do in C language, give them a folder with the stuff in it.
ty
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |