03-23-2005, 11:13 PM
I'm trying to develop a Java application for my Mom's school, but I would like it to be executable. From what I've seen I need to make an executable jar file but am at a lost on how to do this. I'm using JCreator 3.5 if that makes a difference.
First google result:
His example isn't exactly executable because it requires an argument, but if you remove the reference to args in the source file and recompile it, it should be executable by double-click.
After another quick skim through, I don't think he mentions this:
Double-clicking jar files invokes "java -jar %1" (or something along those lines, on my system it uses 'javaw.exe -jar "%1" %*' instead) on Windows systems with J2REs installed and probably a few other platforms as well.