Java program accessible by all users
phhs80 at gmail.com
Sat Dec 3 18:21:10 UTC 2005
On 12/2/05, Les Mikesell <lesmikesell at gmail.com> wrote:
> > JAR Files as Applications
> > You can run JAR-packaged applications with the Java interpreter.
> > The basic command is:
> > java -jar jar-file
> > The -jar flag tells the interpreter that the application is
> > packaged in the JAR file format.
> Which means that if you want a program that you can execute by
> typing its name or clicking on it, you need to make a shell
> script with the above syntax. Or use a gnome/kde launcher with
> that as the command. As a side effect, the jar file doesn't
> need to be in your PATH.
Based on the posts of Christofer and Les, I created a script on
/usr/bin with the following contents:
java -jar /usr/share/myjavaprogram/myjavaprogram.jar
with myjavaprogram.jar placed where it is mentioned. It works! I thank
both, but specially Christofer for the depth of his detailed answer.
More information about the fedora-list