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

java.lang.NoClassDefFoundError: com/mailgun/client/MailgunClient #41

Open
markosski opened this issue Oct 27, 2024 · 0 comments
Open

java.lang.NoClassDefFoundError: com/mailgun/client/MailgunClient #41

markosski opened this issue Oct 27, 2024 · 0 comments

Comments

@markosski
Copy link

Hi there. I'm trying to use mailgun-java in existing project that uses Java 21. Project compiles fine, Intellij detects the package but when executing the code I get the java.lang.NoClassDefFoundError: com/mailgun/client/MailgunClient error that is thrown when configuring client.

MailgunClient.config(config.mailGun().createApi(MailgunMessagesApi.class);

pom.xml

<dependency>
    <groupId>com.mailgun</groupId>
    <artifactId>mailgun-java</artifactId>
    <version>1.1.3</version>
</dependency>

I'm a bit puzzled by this error, considering package seems to be properly included and I can see it in a fat jar.

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

1 participant