Re: Java program accessible by all users

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

 



On 12/2/05, Les Mikesell <lesmikesell@xxxxxxxxx> 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.

Paul


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

  Powered by Linux