Eclipse项目链接外部项目

2016-06-30  本文已影响18人  墨白找

![Uploading Paste_Image_305149.png . . .]
选择想要链接的外部项目,即可。

使用外部项目中的类时,一般不进行import,而使用类的全称
如外部项目下的包com.myweb.news中的类NewsEntity,引用时这样使用。
com.myweb.news.NewsEntity newsEntity
= new com.myweb.news.NewsEntity

上一篇 下一篇

猜你喜欢

热点阅读