[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pde-dev] Basic Plugin Dependencies Question
|
Hi Marcio,
When developing plug-ins, make sure to not tweak the Java classpath manually.
Otherwise, your plug-in may compile fine at development time, but will not run at runtime because Eclipse only looks for dependencies in the MANIFEST.MF of your plug-in.
For starters, please run PDE Tools > Update Classpath on both plug-ins to remove any extranous entries that may be there.
Then make sure you declare everything you want on the classpath as a dependency on the 'Dependencies' tab of the MANIFEST.MF editor.
When everything compiles fine in both plug-in projects, that means you will run fine.
Wassim (the PDE family's deadbeat Dad)
On Tue, Jul 8, 2008 at 6:00 PM, Marcio Ribeiro <
mophoal@xxxxxxxxx> wrote:
Hi all,
I have what I think is a basic plugin dependency question.
I have a project that uses JDT to execute static analysis on Java
classes (Project A). I started it as a normal Java project with the
necessary eclipse plugins in the classpath.
For quick testing purposes a created a plugin project with a class
that extended IPlatformRunnable (Project B). This class execute in a
pre-defined workspace and look for an specific project. Then it crawls
every CompilationUnit of that project and performs a parse, using an
ASTVisitor that is defined in "Project A".
First I used a normal project dependecies, as in Java projects and
realized that it did not work at all. Then I converted "Project A" to
a plugin project (Using PDE Tools), exported the necessary packages,
and added a dependency in "Project B".
Now I get this error:
!ENTRY org.eclipse.osgi 2 0 2008-07-08 18:52:37.515
!MESSAGE The following is a complete list of bundles which are not
resolved, see the prior log entry for the root cause if it exists:
!SUBENTRY 1 org.eclipse.osgi 2 0 2008-07-08 18:52:37.515
!MESSAGE Bundle update@../../Documents and
Settings/Laercio/workspace/Colector/ [30] was not resolved.
!SUBENTRY 2 Colector 2 0 2008-07-08 18:52:37.515
!MESSAGE Missing required bundle Code_Analyser_0.0.0.
What is the problem? Am I supposed to generate a Jar of my "Project A"
to make this work? I hope not as it will slow my tests.
Thanks!
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev