Re: running/executing foo.jar

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux