<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><br></div><div><div><blockquote type="cite"><div>On May 12, 2024, at 4:58 AM, Martin Pernollet <martin.pernollet@protonmail.com> wrote:</div><br class="Apple-interchange-newline"><div><div style="font-family: Arial, sans-serif; font-size: 14px;">Hi,</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;">Two additional useful information</div><div style="font-family: Arial, sans-serif; font-size: 14px;"><ul data-editing-info="{"orderedStyleType":1,"unorderedStyleType":2}"><li style="list-style-type: "- ";"><span>this happens with macOS JDK only (tried ARM but not x86). No problem with Windows and Linux</span></li><li style="list-style-type: "- ";"><span>I get the problem both from Eclipse and when building from command line with Maven :</span></li></ul></div></div></blockquote></div>I can’t recreate but I definitely notice a change</div><div><br></div><div><div>java -version</div><div>openjdk version "22.0.1" 2024-04-16</div><div>OpenJDK Runtime Environment (build 22.0.1</div></div><div><br></div><div>Installed and now jdk 22 is default.</div><div><br></div><div><div>outputdir/HalfPipe.app/Contents/MacOS/HalfPipe</div><div>Exception in thread "main" java.lang.UnsatisfiedLinkError: /Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/app/libhp.dylib: dlopen(/Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/app/libhp.dylib, 0x0001): tried: '/Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/app/libhp.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/app/libhp.dylib' (no such file), '/Users/mjh/HalfPipe/HalfPipe_jpkg/outputdir/HalfPipe.app/Contents/app/libhp.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))</div></div><div><br></div><div>My app is broken on native lib access.</div><div><br></div><div><div>java -cp outputdir/HalfPipe.app/Contents/app/halfpipe.jar org.cmdline.cmds.showc java.nio.ByteBuffer </div><div>java.lang.UnsupportedOperationException: The Security Manager is deprecated and will be removed in a future release</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>at java.base/java.lang.System.setSecurityManager(System.java:431)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>at org.cmdline.psuedoGestalt.GestaltClasses.<clinit>(GestaltClasses.java:54)</div><div><span class="Apple-tab-span" style="white-space:pre"> </span>at org.cmdline.cmds.showc.main(showc.java:72)</div><div>showc: invoked with: java.nio.ByteBuffer</div><div>public abstract class java.nio.ByteBuffer extends java.nio.Buffer implements java.lang.Comparable {</div><div> // Constructors</div><div> java.nio.ByteBuffer(byte[], long, int, java.lang.foreign.MemorySegment);</div><div> java.nio.ByteBuffer(int, int, int, int, java.lang.foreign.MemorySegment);</div><div> java.nio.ByteBuffer(int, int, int, int, byte[], int, java.lang.foreign.MemorySegment);</div><div> // Fields</div><div> private static final long ARRAY_BASE_OFFSET;</div></div><div>…</div><div><br></div><div>I do find java.nio.ByteBuffer</div><div><br></div><div><div>java -cp outputdir/HalfPipe.app/Contents/app/halfpipe.jar set os.arch </div><div>os.arch=x86_64</div></div><div><br></div><div>Java current architecture on my silicon machine?</div><div><br></div><div><div>/usr/libexec/java_home -v 21 --exec java -cp outputdir/HalfPipe.app/Contents/app/halfpipe.jar set os.arch </div><div>os.arch=aarch64</div></div><div><br></div><div>The prior architecture where my application ran.</div><div><br></div><div>Why the change?</div><div><br></div><div><br></div></body></html>