当前位置: 代码迷 >> J2EE >> Ant编译找不到包解决办法
  详细解决方案

Ant编译找不到包解决办法

热度:87   发布时间:2016-04-22 00:26:00.0
Ant编译找不到包
[javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:24: package javax.mail does not exist
  [javac] import javax.mail.BodyPart;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:25: package javax.mail does not exist
  [javac] import javax.mail.Folder;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:26: package javax.mail does not exist
  [javac] import javax.mail.Header;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:27: package javax.mail does not exist
  [javac] import javax.mail.Message;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:28: package javax.mail does not exist
  [javac] import javax.mail.MessagingException;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:29: package javax.mail does not exist
  [javac] import javax.mail.Multipart;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:30: package javax.mail does not exist
  [javac] import javax.mail.Part;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:31: package javax.mail does not exist
  [javac] import javax.mail.Session;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:32: package javax.mail does not exist
  [javac] import javax.mail.Store;
  [javac] ^
  [javac] D:\workspace\avaworkspace\TRMS\src\com\smartone\sn\nsms\emailthread\CheckMailTimerTask.java:33: package javax.mail.internet does not exist
  [javac] import javax.mail.internet.MimeMessage;

当然这些包都能在WebContent\WEB-INF\lib找到
什么问题?

------解决方案--------------------
classpathref="classpath_src" 是否把所有要用到的包都加进来了??
------解决方案--------------------
对哦。找不到包就是classpath中木有啊 是build。xml中的classpath
  相关解决方案