没有可用的包导出包'org.restlet.resource'

时间:2014-07-02 20:22:42

标签: java manifest restlet

我尝试过这个教程:http://ntabakov.wordpress.com/2011/12/     我在本教程的第4步中遇到了问题。     我已经下载并添加到构建路径org.restlet.jar

In the manifest file  I have this error :

> No available bundle exports package 'org.restlet.resource'
in this line :

in this line :
Import-Package: example.restlet.hello.service, org.restlet.resource


my manifest file is : 
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: HelloBundleRestService
Bundle-SymbolicName: HelloBundleRestService
Bundle-Version: 1.0.0.qualifier
Bundle-Vendor: ntabakov.wordpress.com
Bundle-RequiredExecutionEnvironment: JavaSE-1.7
Import-Package: example.restlet.hello.service,
 org.restlet.resource
Service-Component: OSGI-INF/HelloServiceResource.xml

1 个答案:

答案 0 :(得分:0)

我想你得到一个Restlet罐子,它不是一个捆绑包,只是一个简单的罐子。 有一个名为“OSGi”的专用版本:http://restlet.com/download/current#release=stable&edition=osgi&distribution=zip