Home » Eclipse Projects » Equinox » Exporting a package from a jar library in a plugin's classpath.
| |
Re: Exporting a package from a jar library in a plugin's classpath. [message #62151 is a reply to message #62127] |
Sun, 19 February 2006 01:59   |
Eclipse User |
|
|
|
Alex Blewitt wrote:
> Yes, provided that Jar is in the Bundle-Classpath as opposed to
> just the .classpath/Java Build Path.
I believe I have done this, but the PDE complains.
First, before even trying to export the package, here is the MANIFEST.MF
file:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.cpm.designstudio.workspace; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .,
lib/bcprov-jdk14-127.jar,
lib/bsf.jar,
lib/commons-logging.jar,
lib/commons-pool-1.2.jar,
lib/cpm-datasources.jar,
lib/cpm-platform.jar,
lib/cpm-utils.jar,
lib/hsqldb.jar,
lib/jakarta-regexp-1.3.jar,
lib/javax.servlet.jar,
lib/jaxen-full.jar,
lib/js.jar,
lib/jsr173_api.jar,
lib/jxl.jar,
lib/jxta.jar,
lib/log4j-1.2.9.jar,
lib/org.mortbay.jetty.jar,
lib/saxpath.jar,
lib/xbean.jar,
lib/xercesImpl.jar
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: com.cpm.designstudio.workspace,
com.cpm.designstudio.workspace.util
Eclipse-AutoStart: true
Bundle-Activator: com.cpm.designstudio.workspace.WorkspacePlugin
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources
In lib/cpm-utils.jar is the com.cpm.xml package that I would like to
export. The first problem I ran into is that the PDE doesn't let me
choose any packages in these jars. So I manually added it directly into
the MANIFEST.MF file like so:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: com.cpm.designstudio.workspace; singleton:=true
Bundle-Version: 1.0.0
Bundle-ClassPath: .,
lib/bcprov-jdk14-127.jar,
lib/bsf.jar,
lib/commons-logging.jar,
lib/commons-pool-1.2.jar,
lib/cpm-datasources.jar,
lib/cpm-platform.jar,
lib/cpm-utils.jar,
lib/hsqldb.jar,
lib/jakarta-regexp-1.3.jar,
lib/javax.servlet.jar,
lib/jaxen-full.jar,
lib/js.jar,
lib/jsr173_api.jar,
lib/jxl.jar,
lib/jxta.jar,
lib/log4j-1.2.9.jar,
lib/org.mortbay.jetty.jar,
lib/saxpath.jar,
lib/xbean.jar,
lib/xercesImpl.jar
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Export-Package: com.cpm.designstudio.workspace,
com.cpm.designstudio.workspace.util,
com.cpm.xml
Eclipse-AutoStart: true
Bundle-Activator: com.cpm.designstudio.workspace.WorkspacePlugin
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources
When I do this, the PDE flags the line I just added (the " com.cpm.xml"
line) as the error "Package com.cpm.xml does not exist in this plug-in."
Is it possible that the run-time in fact supports this, but that the PDE
does not properly handle this?
Pat McNerthney
ClearPoint Metrics, Inc.
|
|
| |
Re: Exporting a package from a jar library in a plugin's classpath. [message #62270 is a reply to message #62174] |
Sun, 19 February 2006 22:03  |
Eclipse User |
|
|
|
Alex,
I have resolved this. It turns out my problem was specifying the jars
using external locations, rather than a location within the current
workspace. The PDE seems to behave much better now in this area.
Thanks so much for your help, it made me realize that something was
definitely not right with what I was doing.
Pat
|
|
|
Goto Forum:
Current Time: Sun May 11 06:15:44 EDT 2025
Powered by FUDForum. Page generated in 0.03761 seconds
|