> Maybe you had only updated the libj.dylib but not jconsole.

Good point.

I've re-installed J903 recently. But I'm running 2 Macs at the moment.
Maybe I forgot which Mac I was on.

On Fri, 19 Nov 2021 at 09:54, bill lam <[email protected]> wrote:

> Maybe you had only updated the libj.dylib but not jconsole.
> The arch chosen is determined at the moment when the executable is run by
> OS, so that if the jconsole is arch x86_64 only, it will always call the
> intel shared libraries.
> You can check the arch of files using the file command, eg
> $ file jconsole
> $ file libj.dylib
>
> You can download manually binaries from this page
> https://www.jsoftware.com/download/jengine/j903-beta/darwin/j64/
>
> The 3 files: jconsole libj.dylib and libjpcre2.dylib are fat binaries
>
> $ file jconsole
> jconsole: Mach-O universal binary with 2 architectures: [x86_64:Mach-O
> 64-bit x86_64 executable, flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>]
> [arm64:Mach-O 64-bit arm64 executable,
> flags:<NOUNDEFS|DYLDLINK|TWOLEVEL|PIE>]
>
>
>
> On Fri, Nov 19, 2021 at 5:26 PM Ian Clark <[email protected]> wrote:
>
> > That's okay Bill.
> >
> > But that wasn't my point. Which is…
> > Even once I manage to run jconsole "naked", i.e. with no Qt, 9!:56 still
> > shows that the arm64 binary hasn't been found. Or is broken, or otherwise
> > unacceptable. With the result that the x86_64 binary is run instead. (On
> > macOS with the M1 chip, this needs Rosetta.)
> >
> > On Thu, 18 Nov 2021 at 12:08, bill lam <[email protected]> wrote:
> >
> > > Oh sorry again, I wasn't precise enough. I meant navigate to the folder
> > > containing the executable jconsole first and then type .
> > >
> > > The folder can be found by typing in j sessions
> > >
> > > jpath '~bin'
> > >
> > >
> > >
> > >
> > >
> > > On Thu, 18 Nov 2021 at 5:52 PM Ian Clark <[email protected]>
> wrote:
> > >
> > > > ianclark@Ians-Mac-mini ~ % ./jconsole
> > > >
> > > > zsh: no such file or directory: ./jconsole
> > > >
> > > >
> > > > ianclark@Ians-Mac-mini ~ % /Applications/j903/bin/jconsole
> > > >
> > > > j903/j64/darwin/beta-v/commercial/
> > > > www.jsoftware.com/2021-11-16T21:51:35/clang-13-0-0/SLEEF=1
> > > >
> > > >
> > > >
> > > >    9!:56'cpu'
> > > >
> > > > x86_64
> > > >
> > > >
> > > >
> > > > On Thu, 18 Nov 2021 at 09:47, bill lam <[email protected]> wrote:
> > > >
> > > > > if you just run ./jconsole it should be arm64
> > > > >
> > > > >
> > > > >
> > > > > On Thu, 18 Nov 2021 at 5:35 PM Ian Clark <[email protected]>
> > > wrote:
> > > > >
> > > > > > @ Bill
> > > > > >
> > > > > > I'm running an Apple M1 Mini.
> > > > > > Following Eric's instructions, I've just upgraded to j903-beta-v.
> > > > > > It's using Rosetta to run x86_64 even though there's meant to be
> an
> > > > arm64
> > > > > > binary in the app package
> > > > > >
> > > > > > JVERSION
> > > > > >
> > > > > > Engine: j903/j64/darwin
> > > > > >
> > > > > > Beta-v: commercial/2021-11-16T21:51:35
> > > > > >
> > > > > > Library: 9.03.06
> > > > > >
> > > > > > Qt IDE: 1.9.4/5.15.2(5.15.2)
> > > > > >
> > > > > > Platform: Darwin 64
> > > > > >
> > > > > > Installer: J903 install
> > > > > >
> > > > > > InstallPath: /applications/j903
> > > > > >
> > > > > > Contact: www.jsoftware.com
> > > > > >
> > > > > >
> > > > > > Out-of-the-box, I get:
> > > > > >
> > > > > > 9!:56'cpu'
> > > > > >
> > > > > > x86_64
> > > > > >
> > > > > >
> > > > > > i.e. NOT arm64
> > > > > >
> > > > > >
> > > > > > If I launch Terminal, I get:
> > > > > >
> > > > > > ianclark@Ians-Mac-mini ~ % arch
> > > > > > arm64
> > > > > >
> > > > > >
> > > > > > Guessing from your instructions, the following command line ought
> > to
> > > > run
> > > > > > arm64 in j903, but I get errors…
> > > > > >
> > > > > >
> > > > > > ianclark@Ians-Mac-mini ~ % arch arm64 ./jconsole
> > > > > > arch: Can't find arm64 in PATH
> > > > > >
> > > > > > ianclark@Ians-Mac-mini ~ % arch -arm64 ./jconsole
> > > > > > arch: ./jconsole isn't executable
> > > > > > ianclark@Ians-Mac-mini ~ % arch -arm64 jconsole
> > > > > > The operation couldn’t be completed. Unable to locate a Java
> > Runtime.
> > > > > > Please visit http://www.java.com for information on installing
> > Java.
> > > > > >
> > > > > >
> > > > > > …okay, maybe that's the wrong "jconsole"
> > > > > >
> > > > > > and maybe I need the full path to the J executable
> > > > > >
> > > > > >
> > > > > > ianclark@Ians-Mac-mini ~ % arch -arm64
> > > /Applications/j903/jcon903.app
> > > > > > arch: /Applications/j903/jcon903.app isn't executable
> > > > > > ianclark@Ians-Mac-mini ~ % arch -arm64
> > > /Applications/j903/bin/jconsole
> > > > > > arch: posix_spawnp: /Applications/j903/bin/jconsole: Bad CPU type
> > in
> > > > > > executable
> > > > > >
> > > > > >
> > > > > > Now I give up.
> > > > > >
> > > > > > Anyway, why isn't macOS (Monterey, Version 12.0.1) finding the
> > arm64
> > > > > binary
> > > > > > by default?
> > > > > >
> > > > > > Suggestions?
> > > > > >
> > > > > > On Wed, 17 Nov 2021 at 23:43, bill lam <[email protected]>
> > wrote:
> > > > > >
> > > > > > > Apple M1:
> > > > > > >
> > > > > > > This Mac j64 fat binary contains both binary for x86_64 and
> arm64
> > > > > > > architectures so that it runs in native arm64 mode on apple M1.
> > To
> > > > > query
> > > > > > > its cpu architecture, type
> > > > > > >   9!:56'cpu'
> > > > > > > arm64
> > > > > > >
> > > > > > > To force it to run in x86_64 mode on apple M1 via Rosetta 2,
> type
> > > > > > > $ arch x86_64 ./jconsole
> > > > > > >   9!:56'cpu'
> > > > > > > x86_64
> > > > > > >
> > > > > > > Rosetta 2 doesn’t support avx or avx2.
> > > > > > >
> > > > > > > On Thu, 18 Nov 2021 at 4:20 AM Eric Iverson <
> > > > [email protected]>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > J903-beta-v is available for all platforms.
> > > > > > > >
> > > > > > > > If you already run J903-beta, then upgrade is easy:
> > > > > > > >    load'pacman'
> > > > > > > >    'upgrade'jpkg'jengine'
> > > > > > > >
> > > > > > > > If you have not yet installed J903-beta, time to get started!
> > > > > > > >    https://code.jsoftware.com/wiki/System/Installation/J903
> > > > > > > >
> > > > > > > > We are nearing the end of the beta cycle. Please make good
> use
> > of
> > > > > this
> > > > > > > time
> > > > > > > > to help the J community to have the best release possible.
> > > > > > > >
> > > > > > > > Release notes:
> > > > > > > >    https://code.jsoftware.com/wiki/System/ReleaseNotes/J903
> > > > > > > >
> > > > > > > > Questions/bug reports/etc. should go to the beta forum.
> > > > > > > >
> > > > >
> > ----------------------------------------------------------------------
> > > > > > > > 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
> > > > > >
> > > > >
> > ----------------------------------------------------------------------
> > > > > 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
> > >
> > ----------------------------------------------------------------------
> > 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