如何将Cling构建在Eclipse上

来源:互联网 发布:百变魔图软件下载 编辑:程序博客网 时间:2024/04/29 15:05

Cling介绍:
Cling - Java/Android UPnP library and tools 
Cling is an open source UPnP-compatible stack for Java SE, EE, and Android environments. The project's goals are strict specification compliance, complete, clean and extensive APIs, as well as rich SPIs for easy customization.

下载Cling源码包:
现在最新版本是:cling-distribution-1.0.1.zip
http://www.teleal.org/projects/download/

构建Cling到Eclipse
1、新建java项目

//报错是因为我已经创建过了

2、导入cling源码
  项目->导入->文件系统


  



//要勾选“Create top-level folder”选项,具体的源码位置自己指定!!以example为导入根目录
3、导入example源码


//要勾选“Create top-level folder”选项,具体的源码位置自己指定!!以org为导入根目录
4、导入example所依赖的源码


//要勾选“Create top-level folder”选项,具体的源码位置自己指定!!以org为导入根目录


5、加入第三方库:
a、android.jar
  这个是android的库,可安装android SDK下载
b、testng-6.0.1。jar
  这个是测试框架库,可从http://testng.org/doc/download.html下载。
c、teleal-common-1.0.12.jar
  这个库是cling安装包自己带的,可是没有提供源码,只能当库引入了.


构建后的目录


可能的错误
1、Access restriction
  见:http://hi.baidu.com/beisika/blog/item/6d33709b73623da3c9eaf413.html

0 1
原创粉丝点击