Yes, if that is where the user has installed J.

I've seen it installed in /Applications/ or $HOME/Applications/ or in
/usr/local/jxxx/bin/ etc.

Thanks,

-- 
Raul

On Thu, Mar 9, 2023 at 11:42 PM bill lam <bbill....@gmail.com> wrote:
>
> Did you mean put a symlink /usr/bin/ijconsole to j installation under the
> user's home folder?
> eg. sudo ln -s $HOME/j9.4/bin/jconsole /usr/bin/ijconsole
>
>
>
>
>
> On Fri, Mar 10, 2023 at 1:29 AM Raul Miller <rauldmil...@gmail.com> wrote:
>
> > The recent change in directory naming from j903 to j9.4 introduces an
> > interesting issue for shell scripts on unix-like systems.
> >
> > In J shell scripts, this works:
> >
> > #!/home/username/j903/bin/jconsole
> >
> > However, this fails with a spelling error:
> >
> > #!/home/username/j9.4/bin/jconsole
> >
> > Or, on OSX, the shebang line is different, but the spelling error remains:
> >
> > #!/Applications/j9.4/bin/jconsole
> >
> > That said, there's some other issues here, related to portability. One
> > of which is that (as a general rule) a home directory is personal
> > rather than portable. Another is that there's official java jconsole
> > which does not understand J.
> >
> > But, also, for a long time now, Debian based distributions have been
> > distributing j with /usr/bin/ijconsole as a symbolic link to the
> > current installed location for J. (Here, the 'i' in ijconsole stands
> > for Iverson.)
> >
> > So I think that now would  be a good time to adopt that as "documented
> > standard practice" for j shell scripts.
> >
> > FYI,
> >
> > --
> > Raul
> > ----------------------------------------------------------------------
> > For information about J forums see http://www.jsoftware.com/forums.htm
> >
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to