Hi,
I am using eclipse 3.4.0 version.
I am trying to send a mail through
java program, But i get the following error.
exception_name = java.lang.NoClassDefFoundError
exception_message = javax.mail.Session
script_name = Script6
script_id = Script6.java
line_number = 40
exception_stack = at Script6.testMain(Script6.java:40)
at org.eclipse.equinox.internal.app.EclipseAppContainer.callMethodWithException(EclipseAppContainer.java:574)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:195)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
at org.eclipse.core.launcher.Main.main(Main.java:30)
at com.rational.test.ft.util.FtClassLoader.loadClass(FtClassLoader.java:160)
at java.lang.ClassLoader.loadClass(ClassLoader.java:609)
I have added the following jar files in
Java->Build Path->classpath variables
activation 1.1.1.jar
dsn.jar
imap.jar
mail.jar
mailapi.jar
pop3.jar
smtp.jar
project->Java Build path
activation1.1.1.jar
imap.jar
mail.jar
smtp.jar
Any help...
thanks in advance
regards
bharat