[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Build path access to jar inside bundle
|
- From: Ankur Sharma <sharma.ankur@xxxxxxxxx>
- Date: Thu, 09 Apr 2009 15:58:31 +0530
- Newsgroups: eclipse.newcomer
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.21 (Windows/20090302)
Philipp wrote:
Hello
I want to add an OSGi bundle in the build path, so that I can develop
with the libs which will be available when the app will be deployed on
OSGi. The bundle in question is servlet.jar as prepared by the Oscar
team (http://oscar-osgi.sf.net/repo/servlet/servlet.jar).
The structure of this bundle is, that it contains a manifest and a
javax.servlet.jar. The manifest, exports the relevant packages and the
internal classpath points to the jar.
<manifest>
(...)
Bundle-ClassPath: javax.servlet.jar
Export-Package: javax.servlet;specification-version=2.3.0,javax.servle
t.http;specification-version=2.3.0,javax.servlet.jsp;specification-ve
rsion=2.3.0
</manifest>
When I add this bundle to the build path in eclipse, it can't resolve
the classes (for example javax.servlet.http.HttpServletRequest).
How can I make Eclipse find those classes which are in a jar in an OSGi
bundle?
Best regards
Philipp
How are you adding the bundle to build path? I suggest you do it using the Manifest Editor -> Dependencies page. Add your bundle here in "Required Plug-ins".
hth,
Ankur..