Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ARM64 windows cannot launch MoppyControl #179

Open
mentaluproar opened this issue Nov 28, 2022 · 2 comments
Open

ARM64 windows cannot launch MoppyControl #179

mentaluproar opened this issue Nov 28, 2022 · 2 comments

Comments

@mentaluproar
Copy link

Error message:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\seancarson\AppData\Local\Temp\jSerialComm\1669603000103-jSerialComm.dll: Can't load AMD 64-bit .dll on a ARM 64-bit platform
at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(NativeLibraries.java:388)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:232)
at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(NativeLibraries.java:174)
at java.base/java.lang.ClassLoader.loadLibrary(ClassLoader.java:2389)
at java.base/java.lang.Runtime.load0(Runtime.java:755)
at java.base/java.lang.System.load(System.java:1953)
at com.fazecast.jSerialComm.SerialPort.(SerialPort.java:248)
at com.moppy.core.comms.bridge.BridgeSerial.getAvailableSerials(BridgeSerial.java:31)
at com.moppy.control.NetworkManager.(NetworkManager.java:53)
at com.moppy.control.MoppyControlGUI.main(MoppyControlGUI.java:41)

Using openJDK 17

@Sammy1Am
Copy link
Owner

Okay, I don't have time to dig all the way into this at the moment, but if you're feeling adventurous:

jSerialComm seems to be having some issues, but I also noticed that was the issue when attempting to launch on your Mac as well, so I think that's our culprit. Here's at least two things to try (in either order):

  • Update the MoppyLib build.gradle to use 2.9.+ instead of 2.6.+. And then you'll need to rebuild MoppyControlGUI using Gradle to properly pull down the dependencies.
  • jSerialComm's troubleshooting section mentions setting Java's os.arch_full system property to specify your architecture in cases where jSerialComm may have issues detecting it. They specifically call this out for ARM systems, so this might help (though if version 2.6 doesn't support ARM yet, you'll still need to update to 2.9.

If you do manage to get either of these to work, let me know. Otherwise this might need to wait until I have time to setup a dev environment again.

@mentaluproar
Copy link
Author

-blink-

huh?

I’ll have to wait for you then. Obviously there’s no hurry. I appreciate how responsive you’ve been.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants