Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » Sharing of a jar across the plug-ins
Sharing of a jar across the plug-ins [message #74489] Wed, 16 May 2007 10:50
Pradnya is currently offline Pradnya
Messages: 4
Registered: July 2009
Junior Member
Hello,

I want to share a same copy of a jar file across the plug-ins. I have
created a PDE project and modified the plug-in code as per my requirement.
To share a common jar I followed the solution mentioned on the following
link,
http://www.awprofessional.com/articles/article.asp?p=370626& amp;seqNum=13&rl=1

Solution is to create a new plug-in out of the jar file I want to use
across the other plug-ins. Used the option: New->Project->Plug-in
Development->Plug-in from existing JAR archieves to create a plug-in from
a jar file. But getting following error in 'Error Log' after that. Plese
guide me how to remove this error:

Problems occurred when invoking code from plug-in:
"org.eclipse.core.resources".
Exception Stack Trace:
java.lang.IllegalArgumentException: Path must include project and resource
name: /org.eclipse.jox
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
at
org.eclipse.core.internal.resources.Workspace.newResource(Wo rkspace.java:1571)
at
org.eclipse.core.internal.resources.Container.getFolder(Cont ainer.java:130)
at
org.eclipse.pde.internal.core.util.ManifestUtils.findPackage FragmentRoots(ManifestUtils.java:61)
at
org.eclipse.pde.internal.core.builders.BundleErrorReporter.v alidateExportPackages(BundleErrorReporter.java:122)
at
org.eclipse.pde.internal.core.builders.BundleErrorReporter.v alidateContent(BundleErrorReporter.java:104)
at
org.eclipse.pde.internal.core.builders.ManifestConsistencyCh ecker.checkFile(ManifestConsistencyChecker.java:98)
at
org.eclipse.pde.internal.core.builders.ManifestConsistencyCh ecker.checkThisProject(ManifestConsistencyChecker.java:51)
at
org.eclipse.pde.internal.core.builders.ManifestConsistencyCh ecker.build(ManifestConsistencyChecker.java:40)
at
org.eclipse.core.internal.events.BuildManager$2.run(BuildMan ager.java:621)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:163)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:194)
at
org.eclipse.core.internal.events.BuildManager$1.run(BuildMan ager.java:243)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.core.internal.events.BuildManager.basicBuild(Bui ldManager.java:246)
at
org.eclipse.core.internal.events.BuildManager.basicBuildLoop (BuildManager.java:299)
at
org.eclipse.core.internal.events.BuildManager.build(BuildMan ager.java:331)
at
org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBu ildJob.java:156)
at
org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJ ob.java:222)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Previous Topic:ZIP file content in Package Explorer
Next Topic:Sharing of a jar across the plug-ins
Goto Forum:
  


Current Time: Fri Oct 31 19:32:40 GMT 2014

Powered by FUDForum. Page generated in 0.01541 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software