running/executing foo.jar
Arthur Pemberton
dalive at flashmail.com
Mon May 23 10:32:48 UTC 2005
THUFIR HAWAT wrote:
>from gnome, double-clicking on a .jar file I made just opens it. the
>file's being treated like a .zip file, apparently, and isn't being
>executed. the file does have a nice jar-icon with a bean in it,
>though. the following works:
>
>[thufir at localhost bin]$ java -jar HelloWorldSwing.jar
>
>
>what's required to make the jar run with a double-click, please?
>
>
>thanks,
>
>Thufir
>
>
>
try making the file executeable, either with the GUI (which I am not
familiar with) or with the terminal with the follwoing command
chmod +x HelloWorldSwing.jar
Then to execute from the terminal just:
./HelloWorldSwing.jar
More information about the fedora-list
mailing list