Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » The library plugin (jar containing plugin) - why won't it work?
The library plugin (jar containing plugin) - why won't it work? [message #272435] Wed, 22 September 2004 13:20 Go to next message
Eclipse UserFriend
Originally posted by: eddie._spam_free_grassybrook.com

My goal: have a "library" plugin providing classes out of one or more
jar files. (the classes inside are of the form com.xxx.yyy...)

Ok, I have read all the posts about this stuff, and it should be as
simple as:

Create a plain vanilla plugin.
Import jar file(s), which I placed in the root of that project.
Edit plugin.xml, which now has
<runtime>
<library name="MyLibraryStuff.jar">
<export name="*"/>
</library>
</runtime>

I got it that way by adding it to the Run-time libraries section, and
making sure "export the entire library" was checked.

So, let's call this plugin A
I have another plugin, plugin B, one that bring up some views.
I want the view to access certain classes from that library jar.
I told plugin B that it depends on plugin A by adding plugin A to the
"Required plug-ins" list. [a note, the icon next to it has a litle
orangle circle instead of an arrow pointing down, I suppose that's ok]

Now, when I'm editing some source java files in plugin B, I can't see
any classes from that jar file. import statements get the red x, I'm
never offered to import anything from the library jar file, etc.


Any ideas what's going on? Must the jar file be in a particular location
in plugin A? Anything that could be due to the jar file itself? (nothing
special afaik, it's a jar built from ant outside of Eclipse).

Thanks,
- Eddie
Re: The library plugin (jar containing plugin) - why won't it work? [message #272490 is a reply to message #272435] Wed, 22 September 2004 19:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eddie._spam_free_grassybrook.com

After looking at how org.eclipse.tomcat does it, I see the same thing,
except that their project has the java nature attached to it.
I got my project to have that nature too, but now I always get a problem:

"The project cannot be built until its prerequisitie [PLUGIN A] is
built. Cleaning and ..."

I can't convince Eclipse that there is no "building". In fact, I even
later added a dummy java class, but still, no luck. The other projects
continue not to want to build.

BTW, I tried clean all, uncheck build auto, etc. No luck.

Any ideas, please?

Thanks,
Eddie
Re: The library plugin (jar containing plugin) - why won't it work? [message #272510 is a reply to message #272490] Wed, 22 September 2004 21:50 Go to previous message
Eclipse UserFriend
Originally posted by: eddie._spam_free_grassybrook.com

Fixed it, by adding the Java nature to the project, but also making sure
that the Java builder was also running (since I had added the java
nature manually).

Why did this happen in the first place?

Is the plugin project for library jar files like this always supposed to
look like a Java project to eclipse? Did I do something wrong, because I
dont recall any instructions or tutorials explicitly asking to make sure
that the plugin project was a java project. In fact I swore you could
tell it not to do that.

Thanks,
- Eddie
Previous Topic:Plugins
Next Topic:Two problems in configuring perspective
Goto Forum:
  


Current Time: Wed Jul 17 20:40:41 GMT 2024

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

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

Back to the top