P.S. I should add that usually I add one-off commands to my path, not by updating my PATH environmental variable but by adding a shell script in my $HOME/bin/ directory.
For example, in this case, I might create a shell script $HOME/bin/jconsole with the following text: #!/bin/sh exec $HOME/Applications/j903/bin/jconsole "$@" And then chmod +x that script. (The "$@" ensures that all command line arguments are passed on. The 'exec' ensures that my script is replaced by the binary -- without the exec, the script would instead wait for the real jconsole to finish, for possible further commands.) FYI, -- Raul On Thu, Jan 28, 2021 at 7:04 AM Raul Miller <[email protected]> wrote: > > I tested this, just now: > > ~$ echo $PATH > /Users/rauldmiller/Applications/j903/bin:/opt/local/bin:/opt/local/sbin:/Users/rauldmiller/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Library/Frameworks/Mono.framework/Versions/Current/Commands > ~$ type -a jconsole > jconsole is /Users/rauldmiller/Applications/j903/bin/jconsole > jconsole is /usr/bin/jconsole > ~$ jconsole > i.3 3 > 0 1 2 > 3 4 5 > 6 7 8 > > (The other jconsole is the java console...) > > Anyways, I am not sure what problem you are facing, > > Thanks, > > -- > Raul > > On Wed, Jan 27, 2021 at 9:56 PM Devon McCormick <[email protected]> wrote: > > > > [All below on Windows 10] > > In my investigation of how the jpath '~' gets set, I tried opening the > > jconsole from within different directories. However, this proved difficult > > because of the way the way J is set up to run the ../jconsole.cmd file from > > the bin directory below it. > > > > This means I cannot add the J bin directory in my path and expect > > "jconsole" on a command line to run from whatever directory I happen to > > start it from. If I move the files from the bin directory up a level, I > > can do this. > > > > I guess that jconsole.exe is set up to look for its necessary DLLs and such > > relative to the directory in which the executable is found. Is there any > > reason the 8 or so files under "J902" but above "bin" cannot be moved down > > into "bin"? > > > > It's a minor point and I could do it myself but it seems > > unnecessarily complicated the way it is. > > > > Thanks, > > > > Devon > > -- > > > > Devon McCormick, CFA > > > > Quantitative Consultant > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
