Samebug tips5

This error means there's a class missing in your classpath during runtime. You need to create a jar with all your dependencies and have it in your classpath. Check Maven Assembly Plugin and how to add your dependencies to a jar:

I had to build one fat jar that will include all dependencies from the other jars that i wanted to use.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web3947

  • via Atlassian JIRA by Jens Grassel, 1 year ago
  • javax/mail/Authenticator
  • via Oracle Community by 807555, 11 months ago
  • Stack trace

    • java.lang.NoClassDefFoundError: javax/mail/Authenticator at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods( at java.lang.Class.privateGetMethodRecursive( at java.lang.Class.getMethod0( at java.lang.Class.getMethod( at sun.launcher.LauncherHelper.validateMainClass( at sun.launcher.LauncherHelper.checkAndLoadMain( Caused by: java.lang.ClassNotFoundException: javax.mail.Authenticator at at java.lang.ClassLoader.loadClass( at sun.misc.Launcher$AppClassLoader.loadClass( at java.lang.ClassLoader.loadClass( ... 7 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    7 times, 11 months ago
    Once, 2 months ago
    Unknown user
    Once, 2 months ago
    2 times, 3 months ago
    Once, 7 months ago
    1549 more bugmates