且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在Java中包含一个新包

更新时间:2023-11-30 13:51:34

首先,您不包括该包,而是包括一个包中的类.您可以使用通配符,因此例如可以使用以下内容:

Firstly you don not include the package, but classes from a package. You can use the wildcard, so for example something like this will work:

import com.plumtree.openfoundation.security.IXPCrypto; // import the single class
import com.plumtree.openfoundation.security.*; // import the entire package



您还需要将jar文件放在您的库路径中.

理查德很聪明,它是import而不是include;星期一晨起疯狂的不幸案例.



You also need to have the jar file in your library path.

Richard is clever, it''s import not include; a sad case of Monday Morning Madness.