简体   繁体   English

eclipse找不到的包和类

[英]packages and classes not found by eclipse

I'm working on creating an android app, and I've found that many classes and packages apparently "don't exist", such as javax.security.sasl.SaslClient . 我正在创建一个Android应用程序,我发现很多类和包显然“不存在”,例如javax.security.sasl.SaslClient Why is Eclipse not finding these packages & classes? 为什么Eclipse没有找到这些包和类?

It seems as thought many of the security and auth classes are missing. 似乎许多安全和auth类都缺失了。

Use findjar.com to get the required jars, include them in your project and build path. 使用findjar.com获取所需的jar,将它们包含在项目中并构建路径。 It is probably that the classes that you are looking for are not part of the standard JDK. 您正在寻找的类可能不是标准JDK的一部分。

这里下载javax.security.sasl.SaslClient jar文件并将其放入android项目的构建路径中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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