-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
java.lang.UnsatisfiedLinkError on Apple macOS Big Sur (Apple Silicon) #91
Comments
Is it an M1 machine? Which version of sbt are you using? |
Yes its an M1 machine and the project is using sbt 1.4.7 |
Possibly related to java-native-access/jna#1323 |
@nightscape from which information did you deduce, that this is related to the referenced issue in JNA? The error reports, that the native dispatch library can't be loaded. This is in line with the reported version of 2.1.204 for |
Ha, I just wanted to report this same issue on SBT 1.4.9, Zulu 15 and M1. Commenting out dotenv fixes the problem, but leaves me, well, without dotenv :) Here's a stack trace:
|
Did you try the newest version? |
Yes I did, few minutes ago. Same stack trace remains. |
Can confirm, updating to 2.1.227 doesn't fix the issue.
|
This is fixed in If you don't mind a little hackery, you can hunt down sbt's own |
Picking up from nkgm's comment, I think there is a cleaner solution: use the You have 2 options:
To obtain the
(thanks to mbablok for pointing out that we need the directory here, not the path to the file) |
@nikospara The solution works nice on multiple sbt versions, but the |
@mbablok Yes, thank you! Correcting it! |
Does sbt 1.6.0-M1 fix this problem? |
Just experienced this issue on an M1 Mac. I'm using sbt 1.5.5 which is supposed to work on M1. When I remove this plugin from my sbt build, my build is working again. |
I’m using sbt 1.6.1 and sbt dotenv works flawlessly on Apple silicon since I upgraded |
Upgrading to sbt 1.6.1 fixed this issue for me |
I'm having the issue with sbt 1.6.2 (also M1, running MacOS 12.1) |
replacing 5.5.0 with 5.11.0 solved this problem for me |
On a project with
sbt-dotenv
version 2.1.204, there seems to be an issue duringsbt
startup. I'm getting anjava.lang.UnsatisfiedLinkError
exception on a machine running macOS Big Sur version 11.2.2 (20D80). The same project is working on an Intel machine with the exact same OS version.Java version of the non working machine:
The exception that occurs is the following:
The text was updated successfully, but these errors were encountered: