当前位置: 技术问答>java相关
JAVAMAIL的简单问题:Import refers to a missing package: javax.activation.*,解决立刻送分!!!
来源: 互联网 发布时间:2015-01-30
本文导语: 尝试JAVAMAIL的例子sendhtml.java时,用VisualAge for java,import后提示 Import refers to a missing package: javax.activation.* The type named DataHandler is not defined 为什么呢?我该怎么做呀? | 我在编mail时也...
尝试JAVAMAIL的例子sendhtml.java时,用VisualAge for java,import后提示
Import refers to a missing package: javax.activation.*
The type named DataHandler is not defined
为什么呢?我该怎么做呀?
Import refers to a missing package: javax.activation.*
The type named DataHandler is not defined
为什么呢?我该怎么做呀?
|
我在编mail时也碰到过
javax.activation.* 不在jdk中,它在javamail or j2ee中,你到sun去当吧,
或是 你留下mail 我把.jar 发给你
javax.activation.* 不在jdk中,它在javamail or j2ee中,你到sun去当吧,
或是 你留下mail 我把.jar 发给你
|
去Sun下载JAF啊,
编JavaMail要这个包的
编JavaMail要这个包的
|
到sun下载Java Activation FrameWork吧!
是缺东西!
是缺东西!
|
你看一下JAF的JAVADOC,要么就是你的JAF版本低了
|
String to = "supershot@163.net";
String subject = "title";
String from = "aaaa@163.net";
String subject = "title";
String from = "aaaa@163.net";