On 08/19/2014 08:20 AM, John Jason Jordan wrote: > On Tue, 19 Aug 2014 08:11:27 -0700 > John Jason Jordan <[email protected]> dijo: > > Actually I just discovered that I don't even need the shell script to > launch it. The launcher needed the path to java just like the shell > script did, so I just added the path to the command in the launcher and > it now works fine. > > The problem occurred because I don't need the path to java on the > command line, but elsewhere apparently I do. > _______________________________________________
Your needed command /usr/bin/java -jar /path/to/somefile.jar can be broken down as 1. look for java in /usr/bin and run it 2. have java run the somefile.jar located in /path/to Since /usr/bin is in your $PATH, you can just java -jar /path/to/somefile.jar Remember that JAVA is a program, everything else typed after are arguments or variables passed to the java program. Thus, java -jar somefile.jar tells java to look for a jar file called 'somefile.jar' in your CURRENT directory. java -jar /path/to/somefile.jar tells java to look for a jar file called 'somefile.jar' in the /path/to directory. Its good to remember how the command line interpreters (such as bash) are structured: $ <some_command> <stuff_for_command_to_do> as in $ nano /data/notes/email.txt which reads as: find 'nano' in $PATH, run it and give it 'email.txt' to open which it can find in '/data/notes/' -Ed _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
