1 Reply Latest reply: Jul 31, 2013 2:26 PM by Bill Shannon-Oracle RSS

    Problem using java mail and osgi

    Vijaykumar555

      I am developing a emailplugin for jitsi which connects to a mail server and gets the count of new emails but when i run my application a get some thing like this

       

      java.lang.NoClassDefFoundError: javax/mail/Session

           [java]     at net.java.sip.communicator.plugin.exampleplugin.ScheduledEmailCheck.CheckEmailStore(ScheduledEmailCheck.java:21)

           [java]     at net.java.sip.communicator.plugin.exampleplugin.PreScheduleEmailCheck.PreScheduleEmailCheckMethod(PreScheduleEmailCheck.java:12)

           [java]     at net.java.sip.communicator.plugin.exampleplugin.ExamplePluginActivator$LoopTask.run(ExamplePluginActivator.java:110)

           [java]     at java.util.TimerThread.mainLoop(Timer.java:512)

           [java]     at java.util.TimerThread.run(Timer.java:462)

           [java] Caused by: java.lang.ClassNotFoundException: javax.mail.Session not found by [117]

           [java]     at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:812)

           [java]     at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:72)

           [java]     at org.apache.felix.framework.ModuleImpl$ModuleClassLoader.loadClass(ModuleImpl.java:1807)

           [java]     at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

           [java]     ... 5 more

       

      i have included mail.jar and activation.jar