I was afraid of that. Otherwise the fix would have been so simple.

I can now supply a "hacked" J-icon for the Mac (these "icons" are
actually little saddle apps) which is functionally equivalent to the
existing red-J icon except it has the -d32 flag. This would obviate
the need for iffy "if...fi" constructs: if one "J" doesn't work, try
the other. It sits alongside the existing red-J icon in /j602/ without
mutual interference.

I don't know how best to offer this for distribution. Typically I'd
say it's non-geeks running elderly Macs in math departments who run
into this problem. If I offer it as a zipfile on the jwiki, this is
something a novice who's sampling J, not know his/her way around,
won't find.

Bill says pacman won't install an app into /j602/ -- and anyway, what
use is pacman to a novice if J won't run at all?

Distributing mini-apps like the J-icon has issues on the Mac, much
like distributing .EXE files on the PC, because it's a prime way to
distribute trojans.

BTW while on the topic of quick fixes...

I've managed to make a further "J icon" to sit alongside the existing
J icons, for optional dropping into the Dock or creation of an alias
on the Desktop. It's for those utility scripts you've written yourself
and would like to launch like normal apps, but don't yet want to
package-up into a distributable app (say, because you're forever
improving it). Oleg wrote  a "J launcher" as a default app to run
files with the ext: .ijs. But I can't get it to work: it seems to be
broken on OS X 10.6 (Snow Leopard).

My additional J-icon launches J and loads a J-script (in j602-user)
having the same name as itself. So you can duplicate it and rename it:
that's all you have to do: no editing unix scripts.

Currently, alas, you have to tolerate the session window showing too.
There is an additional flag: -jijx which will stop it appearing, but
whenever I set it, a message appears saying there's an error in my
startup.ijs. Without writing fiddly diagnostics, I assume it's because
the startup tries to write a prompt to the session, which isn't there
of course. I've removed all smoutputs from my startup, but that's no
good. I guess it's still jibbing at the 3-space-prompt. Can anyone
suggest a quick fix?

Ian


On Sun, Dec 5, 2010 at 1:37 PM, Brian Schott <[email protected]> wrote:
> Ian et al,
>
> I just checked, and your concern is valid about going back before
> non-intel Macs. When I altered the j602/bin/jwd to include `-d32` the
> launch of J602 failed. So I guess an if...fi is required. Darn.
>
> On Sun, Dec 5, 2010 at 3:01 AM, Ian Clark <[email protected]> wrote:
>>
>> Might the -j32 flag actually be disruptive if you go back before
>> 64-bit java was released? (10.5 was it?) Or on non-Intel Macs?
>>
>> Ian
>
> --
> (B=)
> ----------------------------------------------------------------------
> 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