Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Classpath during build with plugin
Classpath during build with plugin [message #459869] Thu, 07 December 2006 21:00 Go to next message
Eclipse UserFriend
Originally posted by: jelgolfnut.gmail.com

Please help....I feel like I keep going in circles. I created a Spring
plugin using the "create from existing jar" and things were ok. I was
able to reference the classes from my RCP app classes and compile....I
come back the next day and suddenly my RCP app can't see the spring plugin
classes and I get compile errors. I verified that my RCP app lists the
spring plugin as a dependency and I added the RegisterBuddy and
BuddyPolicy in the appropriate manifest.mf files. I know it's a classpath
issue, but going thru the eclipse gui it doesn't seem to change
anything.....any suggestions? I created a separate test project on
another machine and I'm able to reference and compile, I just can't see
what is different.
Thanks
Re: Classpath during build with plugin [message #459888 is a reply to message #459869] Fri, 08 December 2006 05:16 Go to previous messageGo to next message
Eclipse UserFriend
Try doing a -clean, or deleting the runtime workspace if you're testing it in situ. Sometimes the Manifest gets cached, and you need to get rid of any temporary copies if you've made changes.

Alex.
Re: Classpath during build with plugin [message #459965 is a reply to message #459888] Fri, 08 December 2006 18:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jelgolfnut.gmail.com

After much pulling of hair....I found out that the .classpath file in the
plugin project did not have the following line:
<classpathentry exported="true" kind="lib" path=""/>
when I added that, the compile errors went away....although it was still
flaky. I still have problems getting elcipse to recogize some of the
classes from the plugin. I've cleaned, restarted and recreated the
plugin. If there are some other files that eclispe cache, it would be
good to know. My next step is to recreate my RCP app which I don't want
to do.
Re: Classpath during build with plugin [message #459971 is a reply to message #459965] Sat, 09 December 2006 11:13 Go to previous message
Eclipse UserFriend
Don't think so. Not sure what the line was, as it didn't come up on EclipseZone:

http://www.eclipsezone.com/eclipse/forums/m92076290.html#920 76290

Anyway, you might want to check that (if you're using Import-Package) that the bundle exports the appropriate packages using Export-Package from your Jar. When you import a Jar, it should do everything for you.

As for caching -- it's mostly in the run-time configurations that it does the caching. If the projects are out of whack, sometimes just doing a workspace build (Project -> Clean -> Select all projects) is enough; occasionally, closing and re-opening the projects will help too.

Alex.
Previous Topic:Validating A Concept
Next Topic:How to add a new file
Goto Forum:
  


Current Time: Mon Mar 17 14:54:45 EDT 2025

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

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

Back to the top