开发者

Java Mail not being found

I am trying to use Java Mail to send emails with my program but whenever I compile on the com开发者_StackOverflowmand line I get this:

RevenueSummary.java:13: package java.mail does not exist
import java.mail.*;

I have the mail.jar and activation.jar in my /Library/Java/Extensions folder so I'm not sure why it cannot find it.

I've also tried changing my CLASSPATH with: export CLASSPATH=$CLASSPATH:/Library/Java/Extensions/mail.jar:/Library/Java/Extensions/activation.jar

Please let me know how to fix this so I can finish. (Using Mac OS 10.6.4)


You should import javax.mail.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜