-
Notifications
You must be signed in to change notification settings - Fork 50
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
ClassNotFoundException after importing library #38
Comments
I have the same problem ☝️ |
I have a workaround for this: Download the jars from mavencentral and delete the META-INF Folder. Than throw the library into a libs folder and add the jar from cradle via the local file. Hope it helps @sidneywidmer |
@MaaxGr Thx for the hint, that worked 👍 But would be nice if there was a cleaner way. |
Yes of course. But just in case you need it know (as I did 😅) |
I think your problem is not from this library rather the usage of Gradle! Adding |
Yeah. I assumed that everyone in this issue knows how to build a fat-jar :D |
No, I didn't 😅 I thought you didn't knew about fat-jars but It seems that the issue isn't about it About the issue, it might be because there is a dependency of 'bcrypt' itself missing at runtime. |
The previous bcrypt implementation was causing a ClassNotFoundException when executing the fat jar of the application. For more information, see issue: patrickfav/bcrypt#38
After i have added this library to gradle:
build the Project into a JAR and run it
i get the following error:
If i comment out only your dependency everything is fine.
Seems to be connected to issue #30. If i manually delete everything out of the META-INF Folder (except MANIFEST.MF) everything works again.
The text was updated successfully, but these errors were encountered: