Home » Eclipse Projects » Eclipse Platform » Plugin library loading(How to use classes from a library which is inside a loaded plugin ?)
Plugin library loading [message #545794] |
Fri, 09 July 2010 07:58 |
|
Hi,
I'm facing a new issue when I use the dropins folder to load a plugin as a jar.
Indeed, this plugin contains some libs in a lib folder.
Once I open Eclipse, I can use the classes located in the plugin but I can't use the classes from the libs.
Here is the hierarchy:
eclipse
-- dropins
---- myplugin.jar
------ somepackage
-------- someclasses.class
------ lib
-------- somelib.jar
------ plugin.xml
So, when a create a new RCP project in eclipse, I can import all packages exported by this plugin but the classes located in "somelib.jar" can't be used. But someclasses.class can be used.
I found a workaround using a folder plugin instead of a jar plugin but this is not the best way for us to use the plugin.
I hope someone can help,...
Regards,
Cédric
|
|
| |
Re: Plugin library loading [message #548010 is a reply to message #545851] |
Tue, 20 July 2010 12:15 |
|
The manifest.mf file contains all the libraries entries
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name.0
Bundle-SymbolicName: com.framework.ui.rcp;singleton:=true
Bundle-Version: 6.10.1.SNAPSHOT
Bundle-Vendor: %Bundle-Vendor.0
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Eclipse-BuddyPolicy: dependent
Bundle-ClassPath: .,lib/commons-logging-1.0.4.jar,lib/ejb-api-2.1.jar,
lib/commons-lang-2.1.jar,lib/axiom-api-1.2.7.jar,lib/axiom-impl-1.2.7
.jar,lib/axis2-adb-1.4.1.jar,lib/axis2-kernel-1.4.1.jar,lib/backport-
util-concurrent-3.1.jar,lib/commons-codec-1.3.jar,lib/commons-httpcli
ent-3.1.jar,lib/neethi-2.0.4.jar,lib/stax-1.2.0.jar,lib/stax-api-1.0.
1.jar,lib/wsdl4j-1.6.2.jar,lib/XmlSchema-1.4.2.jar,lib/activation-1.1
.jar,lib/log4j-1.2.12.jar,lib/nebula_compositetable.jar,lib/org.eclip
se.nebula.widgets.datechooser_1.0.0.jar,lib/org.eclipse.nebula.widget
s.formattedtext_1.0.0.jar
DynamicImport-Package: *
Export-Package:
org.apache.commons.logging;version="1.0.4",org.apache.commons.logging
.impl;version="1.0.4",org.eclipse.nebula.widgets.datechooser,org.ecli
pse.nebula.widgets.formattedtext,org.eclipse.swt.nebula.widgets.compo
sitetable,org.jnp.interfaces,org.jnp.interfaces.java,org.jnp.interfac
es.jnp,org.jnp.server
Bundle-Localization: plugin
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",org.ec
lipse.ui;bundle-version="3.4.1",org.eclipse.ui.console;bundle-version
="3.3.0"
Import-Package: org.junit
|
|
|
Goto Forum:
Current Time: Thu Mar 28 09:11:42 GMT 2024
Powered by FUDForum. Page generated in 0.04614 seconds
|