You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It wasn't well documented, but the way I tried overriding the architecture was by using java -Dos.arch_full=armv8_64 -cp ...
Thank you in advance. I left the complete error at the bottom.
mkdir -p build
javac -Xlint:unchecked -cp lib/jSerialComm-2.11.0.jar:lib/commons-lang3-3.11.jar -g src/MazeGUI.java src/Mouse.java src/Maze.java src/MazeNode.java src/utility/Pair.java src/utility/PQNode.java src/utility/strings/ParsingStrings.java src/utility/comm/SerialRoute.java src/utility/comm/SerialRouteEvent.java -d build
Exception in thread "main" java.lang.UnsatisfiedLinkError: /private/var/folders/9b/1k0116695fl2ql5xg_hqwrx800w1n9/T/1727145213540-libjSerialComm.jnilib: dlopen(/private/var/folders/9b/1k0116695fl2ql5xg_hqwrx800w1n9/T/1727145213540-libjSerialComm.jnilib, 0x0001): tried: '/private/var/folders/9b/1k0116695fl2ql5xg_hqwrx800w1n9/T/1727145213540-libjSerialComm.jnilib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/var/folders/9b/1k0116695fl2ql5xg_hqwrx800w1n9/T/1727145213540-libjSerialComm.jnilib' (no such file), '/private/var/folders/9b/1k0116695fl2ql5xg_hqwrx800w1n9/T/1727145213540-libjSerialComm.jnilib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
at java.lang.Runtime.load0(Runtime.java:782)
at java.lang.System.load(System.java:1100)
at com.fazecast.jSerialComm.SerialPort.<clinit>(SerialPort.java:248)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at MazeGUI.main(MazeGUI.java:1098)
The text was updated successfully, but these errors were encountered:
FYI, I just ran into the same issue myself after building the current source from scratch, then attempting to call SerialPort.getCommPorts():
Exception in thread "main" java.lang.UnsatisfiedLinkError: Cannot load native library. Errors as follows:
[1]: no jSerialComm in java.library.path: /Users/jeff/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:.
at com.fazecast.jSerialComm.SerialPort.<clinit>(SerialPort.java:273)
at com.fazecast.jSerialComm.HighThroughputNullmodemTest.main(HighThroughputNullmodemTest.java:64)
Execution failed for task ':com.fazecast.jSerialComm.HighThroughputNullmodemTest.main()'.
NOTE: In order to get it to compile, I had to change sourceCompatibility and targetCompatibility (in build.gradle) from 6 to 7. This might (or might not) be significant.
I already tried the following:
I am still running into issues.
It wasn't well documented, but the way I tried overriding the architecture was by using
java -Dos.arch_full=armv8_64 -cp ...
Thank you in advance. I left the complete error at the bottom.
The text was updated successfully, but these errors were encountered: