Which folder for ready to use apps?

Dear all,
I have downloaded the following program from here
http://languagetool.org/download/LanguageTool-2.0.zip

that as you can see it contains all the files needed for running this application. More precisely I need to execute from the command line the following

java -jar LanguageToolGUI.jar

  1. Where to extract the folder and keep it there? I want to go to applications folder but in linux there are few places for that.

  2. That place should be visible from my normal user and

  3. how to make an executable file that executes the: java -jar LanguageToolGUI.jar

  4. where to put it so when I press in my xfce alt+f2 in the prompt there I can type the names program to start.

I would like to thank you in advance for your reply
Regards
Alex

I asked a similar question to your #1 & #2 a while back and the best solution that I found was to create a /bin folder or /applications folder in your home folder and then put that folder in your path in ~/.bashrc.
I have no idea about #3 and #4

This is general information, not specialy for the product you are trying to install (I am not going to download that ZIP file to try to find out what it contains).

Any program can be available to either a (one for himself)) user, or to all users (installed system wide).

. For the user himself, done by himself in his own places.
Basicaly you can put it anywhere within your /home directory, but there is a directory ~/bin which is specaialy created for you. That directory is already in the users PATH environment variable and thus executables in ~/bin can be called by just using the file name.
When you want it elseweher you could add that directory to your PATH (in your .profile) to be able to call it by filename.
(And do not forget to make executable files executable for at least the owner.)

. For system wide usage by all users.
Most often these program are put into /usr/local. There are already several sub-directories there like /usr/local/bin for the executable(s) and you can thus split up the product over directories there. When you have to split up then check if all the different parts know where to find each other (e.g. the main program must know where it’s configuration file is).

This is all about products where the developer did not make any decisions about the place where to put it.
Sometimes developers have their own recomnandations (e.g. they advise /usr/local/… or may be /opt/…)
When things are packaged in an RPM, the places are of course defined in there and all ccomponents of the product must be able then to find each other already.

hcvv wrote:
> … For system wide usage by all users.
> Most often these program are put into /usr/local. There are already
> several sub-directories there like /usr/local/bin for the executable(s)
> and you can thus split up the product over directories there. When you
> have to split up then check if all the different parts know where to
> find each other (e.g. the main program must know where it’s
> configuration file is).
>
> This is all about products where the developer did not make any
> decisions about the place where to put it.
> Sometimes developers have their own recomnandations (e.g. they advise
> /usr/local/… or may be /opt/…)

Note that in the OP’s case, the installation is of Java programs, which
are not executable. Thus a script containing the line

java -jar LanguageToolGUI.jar

might be put in /usr/local/bin so it could be executed by everybody. But
the .jar file would not be put there. You could decide whether to put it
somewhere else under /usr/local. Personally, I find that all too much
hassle so I put them under /opt. Again, in the case of Java programs,
the JAVA_* environment variables need to be set, either in the scripts
or in the users’ rc files.

On 2013-01-09 15:31, Dave Howorth wrote:
> Note that in the OP’s case, the installation is of Java programs, which
> are not executable. Thus a script containing the line
>
> java -jar LanguageToolGUI.jar
>
> might be put in /usr/local/bin so it could be executed by everybody. But
> the .jar file would not be put there.

Another issue is that if the application was really designed for
Windows, as many are, they will want to write to the same folder where
the aplication is… in that case it must be a folder under /home/user


Cheers/Saludos
Carlos E. R.