NoClassDefFound error

2020-05-03 11:04发布

问题:

java.lang.NoClassDefFoundError: javax/mail/Authenticator

I have added the activator and mail jars to my server/deps directory, and am still encountering this problem and I don't know why.

回答1:

Keep in mind NoClassDefFoundError isn't the same as ClassNotFoundException. NoClassDefFoundError means that a class that was available in the classpath at compile time isn't available at runtime. Are you sure your jar files are in the runtime classpath?



标签: java api email