Kushagra Sharma
Kushagra Sharma

Reputation: 101

how to solve an error:javax.mail does not exist?

i copy mail.jar and activation.jar in bin folder of jdk 1.7 but still error javax.mail does not exist

here is my code

import javax.mail.*;
import javax.mail.internet.*;
import javax.actiovation.*;

Upvotes: 3

Views: 10062

Answers (1)

Bosko Mijin
Bosko Mijin

Reputation: 3349

You have to add jar to classpath (How do I add jar files to the Classpath?).
Hope that helps.

Upvotes: 2

Related Questions