I downloaded java mail because i wanted to run the code that had header files :
import javax.mail.*;
import javax.mail.internet.*
But even after setting the class path i am unable to run that code.
The jar files included in java mail are :
- mail.jar
- dsn.jar
- imap.jar
- mailapi.jar
- pop3.jar
- smtp.jar
I edited my classpath variable and finally it was :
C:\Program Files\Java\jdk1.7.0\lib;C:\Program Files\Java\javamail-1.4.4\mail.jar;C:\Program Files\Java\javamail-1.4.4\lib;.;
The first jar file is in a seperate directory and the remaining jar files are in one directory.
If the class path is set wrong , then please tell the mistake. (i have taken the correct directories)
If there is no problem with the class path then what is the problem ?