简体   繁体   中英

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.*;

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM