...

Executable Java Applications

squirellplaying
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.

cfc
03-23-2005, 11:23 PM
First google result:
http://csdl.ics.hawaii.edu/~johnson/613f99/modules/04/jar-files.html

His example isn't exactly executable because it requires an argument, but if you remove the reference to args[0] 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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum