java.lang.NoClassDefFoundError

javax/mail/MethodNotSupportedException

Samebug tips8

You might've forgot to add a dependency or it's written wrong. Also, you might be using incompatible versions of Java and Hibernate. More on this here: https://goo.gl/SjSlRA

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: https://goo.gl/U2zr8k

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

Solutions on the web3948

  • javax/mail/MethodNotSupportedException
  • via jsystemtest by alexsigal
    , 1 year ago
    javax/mail/MethodNotSupportedException
  • via jsystemtest by shayr
    , 1 year ago
    javax/mail/MethodNotSupportedException
  • Stack trace

    • java.lang.NoClassDefFoundError: javax/mail/MethodNotSupportedException at jsystem.framework.scenario.ScenariosManager.getScenario(ScenariosManager.java:117) at jsystem.framework.scenario.ScenariosManager.getCurrentScenario(ScenariosManager.java:174) at jsystem.framework.report.RunnerListenersManager.startTest(RunnerListenersManager.java:538) at junit.framework.TestResult.startTest(TestResult.java:155) at junit.framework.TestResult.run(TestResult.java:107) at junit.framework.SystemTestCase.run(SystemTestCase.java:152) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) Caused by: java.lang.ClassNotFoundException: javax.mail.MethodNotSupportedException at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:307) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:252) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ... 14 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

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    1195 more bugmates