| Java build path plug-in dependencies [message #268503] |
Wed, 11 February 2009 20:15  |
Eclipse User |
|
|
|
Originally posted by: riwright.adobe.com
I upgraded my Windows box to 3.4 yesterday. I imported one of my very
simple plugins and I am seeing something weird. I get errors that nothing
org.eclipse can be found. So I check the build path and there is an entry
for Java JRE, there is no entry for Plug-in Dependencies. I made the
appropriate entries in the Dependencies tab of the plugin editor but that is
only reflected in the manifest. So I went and edited the .classpath file
directly and added a classpath entry for org.eclipse.pde.org etc. That
resolved the problem but seems rather hackish.
So... Any ideas about what I did wrong? Or is this some odd quirk of the
upgrade?
TIA, Ric
|
|
|
|
|
|
| Re: Java build path plug-in dependencies [message #268520 is a reply to message #268515] |
Thu, 12 February 2009 11:58  |
Eclipse User |
|
|
|
"Ric Wright" <riwright@adobe.com> wrote in message
news:C5B98292.1B85A%riwright@adobe.com...
> Ah, Yes. So I discovered initially. Then I wiped out the original one
> and
> downloaded the SDK, which does have the PDE. But perhaps the first import
> somehow that mangled stuff in my workspace/project to start with? I
> looked
> at the .project file and it didn't seem so. But perhaps if the PDE isn't
> there it doesn't set up the .classpath file correctly?
Quite likely. What you need in the .classpath is the PDE container,
something like this:
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
I can't tell from your original post if you have that (you mention adding "a
classpath entry for org.eclipse.pde.org etc.").
Also, the project needs to have a PDE nature; in <natures> in the .project
you should have something like:
<nature>org.eclipse.pde.PluginNature</nature>
But I'd suggest that rather than trying to hand-craft this stuff, now that
you've got the right Eclipse, just recreate the workspace from scratch.
Otherwise you're forever going to be running into gotchas and wondering if
it's because of the way you got there.
|
|
|
Powered by
FUDForum. Page generated in 0.09411 seconds